com.ibm.tivoli.maximo.miniapps.scheduler.compare

Class ActivityModelHelper

  • java.lang.Object
    • com.ibm.tivoli.maximo.miniapps.scheduler.compare.ActivityModelHelper
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List getChildNodes(ilog.views.gantt.IlvGanttModel model, ilog.views.gantt.IlvHierarchyNode parent) 
      java.util.Comparator getIDComparator() 
      ilog.views.gantt.IlvHierarchyNode getRootNode(ilog.views.gantt.IlvGanttModel model) 
      static boolean isActivityDateModified(ilog.views.gantt.IlvHierarchyNode o1, ilog.views.gantt.IlvHierarchyNode o2)
      Tests if 2 nodes are different, in that they have different times.
      static boolean isActivityResourceModified(MXGanttModel leftModel, ilog.views.gantt.IlvHierarchyNode leftNode, MXGanttModel rightModel, ilog.views.gantt.IlvHierarchyNode rightNode)
      Tests if 2 nodes are different if they have different resources assigned to them
      static boolean isActivityStatusModified(ilog.views.gantt.IlvHierarchyNode leftNode, ilog.views.gantt.IlvHierarchyNode rightNode)
      Tests if 2 nodes are different if they have different resources assigned to them
      boolean isModified(ilog.views.gantt.IlvGanttModel leftModel, ilog.views.gantt.IlvHierarchyNode leftNode, ilog.views.gantt.IlvGanttModel rightModel, ilog.views.gantt.IlvHierarchyNode rightNode) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActivityModelHelper

        public ActivityModelHelper()
    • Method Detail

      • isModified

        public boolean isModified(ilog.views.gantt.IlvGanttModel leftModel,
                                  ilog.views.gantt.IlvHierarchyNode leftNode,
                                  ilog.views.gantt.IlvGanttModel rightModel,
                                  ilog.views.gantt.IlvHierarchyNode rightNode)
        Specified by:
        isModified in interface CompareModelHelper.ModelHelper
      • isActivityDateModified

        public static boolean isActivityDateModified(ilog.views.gantt.IlvHierarchyNode o1,
                                                     ilog.views.gantt.IlvHierarchyNode o2)
        Tests if 2 nodes are different, in that they have different times. It is assumed that the nodes have the same id. It is used to compare 2 nodes from 2 different models with the same ID to determine if the node has been modified.
        Parameters:
        o1 -
        o2 -
        Returns:
      • isActivityResourceModified

        public static boolean isActivityResourceModified(MXGanttModel leftModel,
                                                         ilog.views.gantt.IlvHierarchyNode leftNode,
                                                         MXGanttModel rightModel,
                                                         ilog.views.gantt.IlvHierarchyNode rightNode)
        Tests if 2 nodes are different if they have different resources assigned to them
        Parameters:
        leftNode -
        rightNode -
        Returns:
      • isActivityStatusModified

        public static boolean isActivityStatusModified(ilog.views.gantt.IlvHierarchyNode leftNode,
                                                       ilog.views.gantt.IlvHierarchyNode rightNode)
        Tests if 2 nodes are different if they have different resources assigned to them
        Parameters:
        leftNode -
        rightNode -
        Returns: