| java.lang.Object com.projity.pm.scheduling.ScheduleService
ScheduleService | public class ScheduleService (Code) | | Singleton service for manipulating a schedule, such as by gantt chart modifications
|
Method Summary | |
public void | consumeIntervals(Schedule schedule, IntervalConsumer consumer) Calls back the consumer for each interval in the schedule. | public long | getCompleted(Schedule schedule) | public static Field | getCompletedField() | public static ScheduleService | getInstance() | public static boolean | isReadOnly(Schedule schedule) | public void | setCompleted(Object eventSource, Schedule schedule, long completed, UndoableEditSupport undoableEditSupport) | public void | setInterval(Object eventSource, Schedule schedule, long start, long end, ScheduleInterval interval, UndoableEditSupport undoableEditSupport) Set the start or the end of the schedule and fire field event which will cause the critical path to run. | public void | split(Object eventSource, Schedule schedule, long from, long to, UndoableEditSupport undoableEditSupport) Split a task/assignment by adding a nonworking interval. |
consumeIntervals | public void consumeIntervals(Schedule schedule, IntervalConsumer consumer)(Code) | | Calls back the consumer for each interval in the schedule. Currently in only treats splits due to
stop/resume. In the future it will also call back for splits in the work contour itself
Parameters: schedule - Parameters: consumer - |
getCompletedField | public static Field getCompletedField()(Code) | | |
setInterval | public void setInterval(Object eventSource, Schedule schedule, long start, long end, ScheduleInterval interval, UndoableEditSupport undoableEditSupport)(Code) | | Set the start or the end of the schedule and fire field event which will cause the critical path to run. The method
checks to see which of the two - start or end, was modified and only updates the modified one
Parameters: eventSource - - the object which is the event source, such as GanttModel Parameters: schedule - - the task or assignment Parameters: start - - start date millis Parameters: end - - end date millis * Parameters: oldStart - is the prior start for the bar. It will be used to identify what bar changed |
split | public void split(Object eventSource, Schedule schedule, long from, long to, UndoableEditSupport undoableEditSupport)(Code) | | Split a task/assignment by adding a nonworking interval. If there is actual work during the split,
only the nonworking part will be moved. This is contrast to MS Project which lets you move actuals.
eventSource- the object which is the event source, such as GanttModel Parameters: schedule - - the task or assignment Parameters: from - - beginning of nonwork interval Parameters: to - - end of nonwork interval |
|
|