public class SKDPMUtility
extends java.lang.Object
| Constructor and Description | 
|---|
SKDPMUtility(MXGanttModel model)  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
dumpPMSegmentInfo(MXActivity pm,
                 int seqNo,
                 java.io.PrintStream ps)  | 
java.util.Date | 
getEarliestPMSegmentStartDate(MXActivity pm)
Returns earlier start date to the start date for a segment being moved. 
 | 
java.util.Date | 
getEarlyPMEndDate(MXActivity pm,
                 java.util.Date refDate)
Returns later end date to the end date for a segment being moved. 
 | 
java.util.Date | 
getEarlyPMStartDate(MXActivity pm,
                   java.util.Date refDate)
Returns earlier start date to the start date for a segment being moved. 
 | 
java.util.Date | 
getLastestPMSegmentEndDate(MXActivity pm)
Returns later end date to the end date for a segment being moved. 
 | 
MXActivity | 
getLeafActivity(MXActivity parentActivity)
For a given editable PM activity, returns its first leaf. 
 | 
java.util.Date[] | 
getSegmentDates(MXActivity pm,
               int sequence)
Returns dates for a segment given its sequence 
 | 
boolean | 
isPMPendingReforecast(MXActivity pm)
Returns true if any segment in the activity is having a segment that is
 marked for regenerate forecast 
 | 
void | 
markAllPMChildrenForSegmentDeletion(MXActivity parentActivity,
                                   int deletedCount,
                                   int newCount)
For a given Pm, mark all its children and its hierarchy with the deleted
 count; 
 | 
void | 
markOtherSegmentsImmovable(MXActivity pm,
                          int sequenceNum)
Mark all other segments immovable. 
 | 
void | 
setEdited(boolean edited,
         MXActivity pm,
         int sequenceNum)
Marks this segment as edited and set following flags 
1.  | 
void | 
updateAllLeafActivities(MXActivity parentActivity,
                       ilog.views.gantt.IlvTimeInterval timeInterval)
Updates all leaf activities for a given parent editable PM activity. 
 | 
boolean | 
updateAllPMSegmentReservations(MXActivity pm)
Called to the reservations bound to a resource segment. 
 | 
java.util.List<MXActivity> | 
updatePMChildrenActivity(MXActivity parentpm)
For a given PM, makes sure summary bar is in sync with start date of the
 first segment and end date of last segment 
 | 
void | 
updatePMSegmentReservations(MXActivity pm,
                           int sequenceIndex)
Called to the reservations bound to a resource segment. 
 | 
void | 
updatePMSummaryActivity(MXActivity pm)
For a given PM, makes sure summary bar is in sync with start date of the
 first segment and end date of last segment 
 | 
public SKDPMUtility(MXGanttModel model)
public boolean isPMPendingReforecast(MXActivity pm)
public java.util.Date getEarlyPMStartDate(MXActivity pm, java.util.Date refDate)
pm - MXActivityrefDate - Datepublic java.util.Date getEarlyPMEndDate(MXActivity pm, java.util.Date refDate)
pm - MXActivityrefDate - Datepublic void updatePMSummaryActivity(MXActivity pm)
MXActivity - public java.util.List<MXActivity> updatePMChildrenActivity(MXActivity parentpm)
MXActivity - public void markAllPMChildrenForSegmentDeletion(MXActivity parentActivity, int deletedCount, int newCount)
MXActivity - public java.util.Date getEarliestPMSegmentStartDate(MXActivity pm)
pm - MXActivityrefDate - Datepublic static void dumpPMSegmentInfo(MXActivity pm, int seqNo, java.io.PrintStream ps)
public java.util.Date getLastestPMSegmentEndDate(MXActivity pm)
pm - MXActivityrefDate - Datepublic void updateAllLeafActivities(MXActivity parentActivity, ilog.views.gantt.IlvTimeInterval timeInterval)
parentActivity - timeInterval - public MXActivity getLeafActivity(MXActivity parentActivity)
parentActivity - public java.util.Date[] getSegmentDates(MXActivity pm, int sequence)
pm - sequence - public void updatePMSegmentReservations(MXActivity pm, int sequenceIndex)
public boolean updateAllPMSegmentReservations(MXActivity pm)
public void setEdited(boolean edited,
                      MXActivity pm,
                      int sequenceNum)
NEWDATENOTNULL to true
 3. Marks the activity as _MODIFIED=trueedited - booleanpm - MXActivity of PMpublic void markOtherSegmentsImmovable(MXActivity pm, int sequenceNum)
pm -