| java.lang.Object org.cougaar.logistics.plugin.utils.ScheduleUtils
ScheduleUtils | public class ScheduleUtils (Code) | | Provide convenience methods for creating objects.
|
Method Summary | |
public static Schedule | adjustSchedule(Schedule sched, long start, long end, int amount, long time_incr) | public static Schedule | adjustSchedule(Schedule sched, long start, long end, int amount) | public static Schedule | adjustSchedule(Schedule sched, long start, int amount) | public static QuantityScheduleElement | buildQuantityScheduleElement(double qty, long start, long end) | public static QuantityScheduleElement | buildQuantityScheduleElement(double qty, long start, long end, long time_incr) | public static Schedule | buildSimpleQuantitySchedule(double qty, long start, long end) | public static Schedule | buildSimpleQuantitySchedule(int qty, long start, long end, long time_incr) | public static Vector | convertEnumToVector(Enumeration e) | public Schedule | convertQuantitySchedule(Schedule qty_sched) | public Schedule | createConsumerSchedule(Collection col) | public Schedule | createOrgActivitySchedule(Collection col) | public static ScheduledContentPG | createScheduledContentPG(Asset a, Schedule s) | public static ScheduleElement | getElementWithTime(Schedule s, long time) | public Schedule | getMergedSchedule(Vector parameterSchedules) Here is what this method does (Ray Tomlinson). | public static boolean | isOffendingSchedule(Schedule sched) | public static Schedule | newObjectSchedule(Enumeration elements) | public static Schedule | simplifyObjectSchedule(Schedule sched) | public static Schedule | trimObjectSchedule(Schedule schedule, TimeSpan span) | public static long | truncTime(long time, long time_incr) |
MSEC_PER_DAY | final protected static long MSEC_PER_DAY(Code) | | |
SECOND_IN_MS | final protected static long SECOND_IN_MS(Code) | | |
adjustSchedule | public static Schedule adjustSchedule(Schedule sched, long start, long end, int amount, long time_incr)(Code) | | |
buildQuantityScheduleElement | public static QuantityScheduleElement buildQuantityScheduleElement(double qty, long start, long end, long time_incr)(Code) | | |
buildSimpleQuantitySchedule | public static Schedule buildSimpleQuantitySchedule(double qty, long start, long end)(Code) | | |
buildSimpleQuantitySchedule | public static Schedule buildSimpleQuantitySchedule(int qty, long start, long end, long time_incr)(Code) | | |
getMergedSchedule | public Schedule getMergedSchedule(Vector parameterSchedules)(Code) | | Here is what this method does (Ray Tomlinson). Merges a number
of parameter schedules into a combined schedule. In the
combined schedule, the "parameter" of each element is a Vector
of the parameters from each of the input schedules. For
elements not covered by the input schedule, the corresponding
Vector element is null. The output schedule elements correspond
to the intersections of the elements or inter-element gaps of
the input schedules. No schedule element is generated for time
spans where none of the input schedules has an element.
Conversely, all elements of the merged schedule have at least
one non-null parameter.
There is an assumption that the elements of the input schedules
and the output schedule are non-overlapping.
|
isOffendingSchedule | public static boolean isOffendingSchedule(Schedule sched)(Code) | | |
truncTime | public static long truncTime(long time, long time_incr)(Code) | | |
|
|