com.ibm.tivoli.maximo.skd.model

Class MXPMSegmentActivity

  • java.lang.Object
    • ilog.views.gantt.model.IlvAbstractActivity
  • All Implemented Interfaces:
    IMXActivity, IMXGanttCommonConstant, IMXPropertyGetterSetter, ilog.views.gantt.IlvActivity, ilog.views.gantt.IlvHierarchyNode, ilog.views.gantt.model.IlvPropertyHolderActivity, ilog.views.gantt.property.IlvUserPropertyHolder, java.io.Serializable


    public class MXPMSegmentActivity
    extends MXActivity
    MXPMSeqmentActivity is a Helper class that makes a PM segment, in an Activity, appear like a regular Activity object so that we can do manipulations on it, like setting the start/end times, etc. PMSegmentActivity is NOT in the ILOG model, and are only used as a FACADE to access the PM Segment Data in the parent PM Activity.
    See Also:
    Serialized Form
    • Constructor Detail

      • MXPMSegmentActivity

        public MXPMSegmentActivity(java.lang.String id,
                                   java.lang.String name,
                                   java.util.Date start,
                                   java.util.Date end,
                                   MXActivity parent,
                                   int seq)
    • Method Detail

      • getParent

        public MXActivity getParent()
        Returns the "real" MXActivity object that holds this PM segment
        Returns:
      • getSequence

        public int getSequence()
        Returns the PM Sequence for this PM instance
        Returns:
      • setEndTime

        public void setEndTime(java.util.Date endTime)
        Description copied from class: MXActivity
        Set end time
        Specified by:
        setEndTime in interface ilog.views.gantt.IlvActivity
        Overrides:
        setEndTime in class MXActivity
      • setStartTime

        public void setStartTime(java.util.Date startTime)
        Description copied from class: MXActivity
        Set start time for an activity
        Specified by:
        setStartTime in interface ilog.views.gantt.IlvActivity
        Overrides:
        setStartTime in class MXActivity
      • setTimeInterval

        public void setTimeInterval(java.util.Date arg0,
                                    java.util.Date arg1)
        Description copied from class: MXActivity
        Set time interval for an activity
        Specified by:
        setTimeInterval in interface IMXActivity
        Specified by:
        setTimeInterval in interface ilog.views.gantt.IlvActivity
        Overrides:
        setTimeInterval in class MXActivity
      • setTimeInterval

        public void setTimeInterval(ilog.views.gantt.IlvTimeInterval arg0)
        Description copied from class: MXActivity
        Set the time interval
        Specified by:
        setTimeInterval in interface ilog.views.gantt.IlvActivity
        Overrides:
        setTimeInterval in class MXActivity
      • setProperty

        public java.lang.Object setProperty(java.lang.String property,
                                            java.lang.Object value)
        Description copied from class: MXActivity
        Set property name and value
        Specified by:
        setProperty in interface IMXPropertyGetterSetter
        Specified by:
        setProperty in interface ilog.views.gantt.property.IlvUserPropertyHolder
        Overrides:
        setProperty in class MXActivity
        Parameters:
        property - name
        Returns:
        value as object
      • setProperty

        public java.lang.Object setProperty(java.lang.String property,
                                            java.lang.Object value,
                                            boolean ignoreChangeTracking)
        Description copied from class: MXActivity
        Sets property value
        Specified by:
        setProperty in interface IMXPropertyGetterSetter
        Overrides:
        setProperty in class MXActivity
        Returns:
        property
      • getProperty

        public java.lang.Object getProperty(java.lang.String arg0)
        Proxy GetProperty to go to the parent for everything except for local fields.
        Specified by:
        getProperty in interface IMXPropertyGetterSetter
        Specified by:
        getProperty in interface ilog.views.gantt.property.IlvUserPropertyHolder
        Overrides:
        getProperty in class ilog.views.gantt.model.general.IlvGeneralActivity
      • isPMActivityID

        public static boolean isPMActivityID(java.lang.String id)
        Returns true if the ID starts with PM_ and contains "__"
        Parameters:
        id -
        Returns:
      • getPMActivity

        public static MXPMSegmentActivity getPMActivity(MXGanttModel model,
                                                        java.lang.String id)
        This is a convenience method that takes an ID in the format PM_ACTIVITYID__SEQ# it returns a MXPMActivity if the Activity exists, and the Activity has the given Sequence #. Otherwise it will return null.
        Parameters:
        model -
        activityId -
      • getPMActivity

        public static MXPMSegmentActivity getPMActivity(MXActivity pmParentRow,
                                                        int seqId)
        Returns the PM Seqment info as a MXActivity so that we can treat it like an reqular MXActivity object
        Parameters:
        pmParentRow -
        seqId -
        Returns: