public class SKDCPMExtensionAdapter extends java.lang.Object implements SKDCPMExtension
Constructor and Description |
---|
SKDCPMExtensionAdapter() |
Modifier and Type | Method and Description |
---|---|
SKDCPMAdjustedActivityData |
computeEarlyStartAndFinish(ilog.views.gantt.IlvGanttModel model,
ilog.views.gantt.IlvActivity activity,
java.util.Date parentEarlyStart,
java.util.Date activityEarlyStart,
java.util.Date activityEarlyFinish)
Compute the early start of the activity based on an already computed early start
and early finish values.
|
SKDCPMAdjustedActivityData |
computeLateStartAndFinish(ilog.views.gantt.IlvGanttModel model,
ilog.views.gantt.IlvActivity activity,
java.util.Date parentLatestFinish,
java.util.Date activityLateStart,
java.util.Date activityLatefinish)
Returns true, if the activity early start and finish are acceptable to this
extension or not.
|
void |
initialize(ilog.views.gantt.IlvGanttModel model,
ilog.views.gantt.IlvActivity[] selectedActivities)
Called to let the extension code initialize anything needed for the
CPM extension logic.
|
boolean |
isEarlyStartAndFinishAcceptable(ilog.views.gantt.IlvGanttModel model,
ilog.views.gantt.IlvActivity activity,
java.util.Date parentEarlyStart,
java.util.Date activityEarlyStart,
java.util.Date activityEarlyFinish)
Compute the late start of the activity based on an already computed late start
and late finish values.
|
boolean |
isLateStartAndFinishAcceptable(ilog.views.gantt.IlvGanttModel model,
ilog.views.gantt.IlvActivity activity,
java.util.Date parentLatestFinish,
java.util.Date activityLateStart,
java.util.Date activityLatefinish)
Returns true, if the activity late start and finish are acceptable to this
extension or not.
|
void |
release(ilog.views.gantt.IlvGanttModel model,
ilog.views.gantt.IlvActivity[] selectedActivities,
boolean success)
Called to indicate to the extension that the CPM process has completed
and indicates the status
|
public void initialize(ilog.views.gantt.IlvGanttModel model, ilog.views.gantt.IlvActivity[] selectedActivities) throws java.lang.Exception
initialize
in interface SKDCPMExtension
model
- GanttModelselectedActivities
- selected activities, will be null, if CPM is applied on alljava.lang.Exception
public SKDCPMAdjustedActivityData computeEarlyStartAndFinish(ilog.views.gantt.IlvGanttModel model, ilog.views.gantt.IlvActivity activity, java.util.Date parentEarlyStart, java.util.Date activityEarlyStart, java.util.Date activityEarlyFinish) throws java.lang.Exception
computeEarlyStartAndFinish
in interface SKDCPMExtension
model
- GanttModelactivity
- activity on which the early start and finish need to be computed.parentEarlyStart
- parent node's early startactivityEarlyStart
- activity early start as determined by the basic CPM logicactivityEarlyFinish
- activity early finish as determined by the basic CPM logicjava.lang.Exception
public SKDCPMAdjustedActivityData computeLateStartAndFinish(ilog.views.gantt.IlvGanttModel model, ilog.views.gantt.IlvActivity activity, java.util.Date parentLatestFinish, java.util.Date activityLateStart, java.util.Date activityLatefinish) throws java.lang.Exception
computeLateStartAndFinish
in interface SKDCPMExtension
model
- GanttModelactivity
- activity on which the early start and finish need to be computed.parentEarlyStart
- parent node's early startactivityEarlyStart
- activity early start as determined by the basic CPM logicactivityEarlyFinish
- activity early finish as determined by the basic CPM logicjava.lang.Exception
public boolean isEarlyStartAndFinishAcceptable(ilog.views.gantt.IlvGanttModel model, ilog.views.gantt.IlvActivity activity, java.util.Date parentEarlyStart, java.util.Date activityEarlyStart, java.util.Date activityEarlyFinish) throws java.lang.Exception
isEarlyStartAndFinishAcceptable
in interface SKDCPMExtension
model
- GanttModelactivity
- activity on which the late start and finish need to be computed.parentLatestFinish
- parent node's late startactivityLateStart
- activity late start as determined by the basic CPM logicactivityLatefinish
- activity late finish as determined by the basic CPM logicjava.lang.Exception
public boolean isLateStartAndFinishAcceptable(ilog.views.gantt.IlvGanttModel model, ilog.views.gantt.IlvActivity activity, java.util.Date parentLatestFinish, java.util.Date activityLateStart, java.util.Date activityLatefinish) throws java.lang.Exception
isLateStartAndFinishAcceptable
in interface SKDCPMExtension
model
- GanttModelactivity
- activity on which the late start and finish need to be computed.parentLatestFinish
- parent node's late startactivityLateStart
- activity late start as determined by the basic CPM logicactivityLatefinish
- activity late finish as determined by the basic CPM logicjava.lang.Exception
public void release(ilog.views.gantt.IlvGanttModel model, ilog.views.gantt.IlvActivity[] selectedActivities, boolean success)
release
in interface SKDCPMExtension
model
- GanttModelselectedActivities
- selected activities, will be null, if CPM is applied on allsuccess
- true value indicates CPM is successful, otherwise CPM failed.