| java.lang.Object org.cougaar.planning.ldm.plan.ScheduleUtilities
ScheduleUtilities | final public class ScheduleUtilities (Code) | | |
Method Summary | |
final public static Schedule | addSchedules(Schedule aSchedule, Schedule bSchedule) combine two quantity schedules. | public static Schedule | combineLikeQuantityElements(Schedule aSchedule) Returns a schedule that creates ScheduleElementWithValue that span multiple
days if there are Like ScheduleElementWithValues during that time period. | public static Schedule | computeNonOverlappingSchedule(Schedule aSchedule) Return non-overlapping schedules from thescheduleelements. | public void | selectElementsAtTime(Schedule s, Thunk t, long d) | public void | selectElementsEnclosingSpan(Schedule s, Thunk t, long startt, long endt) | public void | selectElementsEnclosingSpan(Schedule s, Thunk t, ScheduleElement span) | public void | selectElementsOverlappingSpan(Schedule s, Thunk t, long startt, long endt) | public void | selectElementsOverlappingSpan(Schedule s, Thunk t, ScheduleElement span) | public static Schedule | simplifySchedule(Schedule s) Simplify a Quantity schedule by producing the smallest
schedule which has the same quantity-value curve. | final public static Schedule | subtractSchedules(Schedule aSchedule, Schedule bSchedule) | public static double | sumElements(Collection aSet) Add the quantities of the scheduleelements in the set. |
millisperday | final public static long millisperday(Code) | | |
selectElementsAtTime | public void selectElementsAtTime(Schedule s, Thunk t, long d)(Code) | | Utility to select ScheduleElements which overlap with a specific time *
|
selectElementsEnclosingSpan | public void selectElementsEnclosingSpan(Schedule s, Thunk t, long startt, long endt)(Code) | | Utility to select ScheduleElements which enclose (or equal) a time span *
|
selectElementsEnclosingSpan | public void selectElementsEnclosingSpan(Schedule s, Thunk t, ScheduleElement span)(Code) | | Utility to select ScheduleElements which enclose (or equal) a time span *
|
selectElementsOverlappingSpan | public void selectElementsOverlappingSpan(Schedule s, Thunk t, long startt, long endt)(Code) | | Utility to select ScheduleElements which overlap with a time span *
|
selectElementsOverlappingSpan | public void selectElementsOverlappingSpan(Schedule s, Thunk t, ScheduleElement span)(Code) | | Utility to select ScheduleElements which overlap with a time span *
|
simplifySchedule | public static Schedule simplifySchedule(Schedule s)(Code) | | Simplify a Quantity schedule by producing the smallest
schedule which has the same quantity-value curve. That is,
no temporally-overlapping elements and no abutting elements
with the same value.
|
subtractSchedules | final public static Schedule subtractSchedules(Schedule aSchedule, Schedule bSchedule)(Code) | | Subtract out the bSchedule from the aSchedule *
|
sumElements | public static double sumElements(Collection aSet)(Code) | | Add the quantities of the scheduleelements in the set.
Must be a set of ScheduleElementWithValues or RateScheduleElement
Parameters: aSet - Called with all the schedule elements for a day. double throws: IllegalArgumentException - |
|
|