com.ibm.tivoli.maximo.miniapps.scheduler.pm

Class SKDPMUtility

  • java.lang.Object
    • com.ibm.tivoli.maximo.miniapps.scheduler.pm.SKDPMUtility


  • public class SKDPMUtility
    extends java.lang.Object
    Singleton class for servicing utility methods
    Since:
    Scheduler 7.1.0.0
    • Constructor Detail

    • Method Detail

      • isPMPendingReforecast

        public boolean isPMPendingReforecast(MXActivity pm)
        Returns true if any segment in the activity is having a segment that is marked for regenerate forecast
      • getEarlyPMStartDate

        public java.util.Date getEarlyPMStartDate(MXActivity pm,
                                                  java.util.Date refDate)
        Returns earlier start date to the start date for a segment being moved.
        Parameters:
        pm - MXActivity
        refDate - Date
        Returns:
        Date
      • getEarlyPMEndDate

        public java.util.Date getEarlyPMEndDate(MXActivity pm,
                                                java.util.Date refDate)
        Returns later end date to the end date for a segment being moved. This is to get the latest date to update the bounds so that summary is updated
        Parameters:
        pm - MXActivity
        refDate - Date
        Returns:
        Date
      • updatePMSummaryActivity

        public 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
        Parameters:
        MXActivity -
      • updatePMChildrenActivity

        public java.util.List 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
        Parameters:
        MXActivity -
      • markAllPMChildrenForSegmentDeletion

        public void markAllPMChildrenForSegmentDeletion(MXActivity parentActivity,
                                                        int deletedCount,
                                                        int newCount)
        For a given Pm, mark all its children and its hierarchy with the deleted count;
        Parameters:
        MXActivity -
      • getEarliestPMSegmentStartDate

        public java.util.Date getEarliestPMSegmentStartDate(MXActivity pm)
        Returns earlier start date to the start date for a segment being moved.
        Parameters:
        pm - MXActivity
        refDate - Date
        Returns:
        Date
      • dumpPMSegmentInfo

        public static void dumpPMSegmentInfo(MXActivity pm,
                                             int seqNo,
                                             java.io.PrintStream ps)
      • getLastestPMSegmentEndDate

        public java.util.Date getLastestPMSegmentEndDate(MXActivity pm)
        Returns later end date to the end date for a segment being moved. This is to get the latest date to update the bounds so that summary is updated
        Parameters:
        pm - MXActivity
        refDate - Date
        Returns:
        Date
      • updateAllLeafActivities

        public void updateAllLeafActivities(MXActivity parentActivity,
                                            ilog.views.gantt.IlvTimeInterval timeInterval)
        Updates all leaf activities for a given parent editable PM activity.
        Parameters:
        parentActivity -
        timeInterval -
      • getLeafActivity

        public MXActivity getLeafActivity(MXActivity parentActivity)
        For a given editable PM activity, returns its first leaf.
        Parameters:
        parentActivity -
        Returns:
      • getSegmentDates

        public java.util.Date[] getSegmentDates(MXActivity pm,
                                                int sequence)
        Returns dates for a segment given its sequence
        Parameters:
        pm -
        sequence -
        Returns:
      • updatePMSegmentReservations

        public void updatePMSegmentReservations(MXActivity pm,
                                                int sequenceIndex)
        Called to the reservations bound to a resource segment.
      • updateAllPMSegmentReservations

        public boolean updateAllPMSegmentReservations(MXActivity pm)
        Called to the reservations bound to a resource segment. This method will sync resources for all segments for a given PM
      • setEdited

        public void setEdited(boolean edited,
                              MXActivity pm,
                              int sequenceNum)
        Marks this segment as edited and set following flags
        1. If re-forecast is on and this activity was edited mark the flag REGENERATE as true. Set this segment MOVABLE=true and all other segments are MOVABLE=false
        2. Sets NEWDATENOTNULL to true 3. Marks the activity as _MODIFIED=true
        Parameters:
        edited - boolean
        pm - MXActivity of PM
      • markOtherSegmentsImmovable

        public void markOtherSegmentsImmovable(MXActivity pm,
                                               int sequenceNum)
        Mark all other segments immovable.
        Parameters:
        pm -