com.ibm.tivoli.maximo.skd.model

Class MXSegmentManager

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.model.MXSegmentManager
  • Direct Known Subclasses:
    AMCrewSegmentManager


    public class MXSegmentManager
    extends java.lang.Object
    • Field Detail

      • SEGMENT_MANAGER_FIELD

        public static final java.lang.String SEGMENT_MANAGER_FIELD
        See Also:
        Constant Field Values
      • DEFAULT_SEGMENT_MANAGER

        public static final java.lang.String DEFAULT_SEGMENT_MANAGER
        See Also:
        Constant Field Values
    • Constructor Detail

      • MXSegmentManager

        public MXSegmentManager(java.lang.String prefix,
                                java.lang.String countField,
                                java.lang.String seqenceField,
                                java.util.Map segmentFieldsToActivityFields)
    • Method Detail

      • pushSegmentMapToParentRow

        public void pushSegmentMapToParentRow(MXGanttModel model,
                                              MXActivity parent)
        Pushes data stored in the segment map of the parent, into the SEGMENT#-FIELD in the parent
        Parameters:
        model -
        parent -
      • updateParent

        public void updateParent(MXActivity parent,
                                 MXActivity childActivity,
                                 int seq)
        Update the parent row SEGMENT fields from the child segment activity
        Parameters:
        parent -
        childActivity -
        seq -
      • buildSegmentActivityChildrenFromParentMap

        public void buildSegmentActivityChildrenFromParentMap(MXGanttModel model,
                                                              MXActivity parent)
        Adds the Child Activity Rows to the Parent, based on the data in the Segment Map
        Parameters:
        model -
        parent -
      • pushChildSegmentsToParentMap

        public void pushChildSegmentsToParentMap(MXGanttModel model,
                                                 MXActivity parent)
        Read all child MXSegmentActivity children and build the Map
        Parameters:
        model -
        parent -
      • updateSegmentMapFromParentRowSegmentFields

        public void updateSegmentMapFromParentRowSegmentFields(MXGanttModel model,
                                                               MXActivity parent)
      • get

        public static java.lang.Object get(MXActivity parent,
                                           java.lang.String prefix,
                                           int seq,
                                           java.lang.String fld)
      • set

        public static void set(MXActivity parent,
                               java.lang.String prefix,
                               int seq,
                               java.lang.String fld,
                               java.lang.Object value)
      • updateMap

        public static void updateMap(MXActivity mxActivity,
                                     java.lang.String property,
                                     java.lang.Object value)
        Accepts a property, like, SEGMENT0-DDD and will, attempt to locate the segment in the map and update the segment property
        Parameters:
        mxActivity - Parent Activity Row
        property - SEGMENT#-FEILD property
        value - value