public class SKDPMUtility
extends java.lang.Object
Constructor and Description |
---|
SKDPMUtility() |
Modifier and Type | Method and Description |
---|---|
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.
|
CustomActivitySegmentRenderer |
getSegmentClosestToToday(MXActivity pm,
CustomPMActivityRenderer pmRenderer)
Returns the segment's renderer which is closest to the today's date.
|
java.util.Date[] |
getSegmentDates(MXActivity pm,
int sequence)
Returns dates for a segment given its sequence
|
static SKDPMUtility |
getSKDPMUtility()
Returns the static instance of this class.
|
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 |
setupInitialOverlapping(CustomActivitySegmentRenderer movingSegment,
MXActivity pm,
CustomPMActivityRenderer pmGraphic)
Called when segments are first rendered from a CustomPMActivityRenderer.
|
void |
updateAllLeafActivities(MXActivity parentActivity,
ilog.views.gantt.IlvTimeInterval timeInterval)
Updates all leaf activities for a given parent editable PM activity.
|
void |
updateAllPMSegmentReservations(MXActivity pm)
Called to the reservations bound to a resource segment.
|
void |
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 static SKDPMUtility getSKDPMUtility()
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 void updatePMChildrenActivity(MXActivity parentpm)
MXActivity
- public void markAllPMChildrenForSegmentDeletion(MXActivity parentActivity, int deletedCount, int newCount)
MXActivity
- public java.util.Date getEarliestPMSegmentStartDate(MXActivity pm)
pm
- MXActivityrefDate
- Datepublic 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 void updateAllPMSegmentReservations(MXActivity pm)
public CustomActivitySegmentRenderer getSegmentClosestToToday(MXActivity pm, CustomPMActivityRenderer pmRenderer)
pm
- pmRenderer
- public void setupInitialOverlapping(CustomActivitySegmentRenderer movingSegment, MXActivity pm, CustomPMActivityRenderer pmGraphic)
CustomActivitySegmentRenderer
- movingSegmentMXActivity
- pmCustomPMActivityRenderer
- pmGraphic