Class JobPlanTaskDependency


  • public class JobPlanTaskDependency
    extends java.lang.Object
    This class represents a single JobPlan dependency.
    • Constructor Detail

      • JobPlanTaskDependency

        protected JobPlanTaskDependency​(org.w3c.dom.Element pre)
      • JobPlanTaskDependency

        public JobPlanTaskDependency​(JobPlanTask predecessor,
                                     TaskState when)
        Creates a JobPlanTaskDependency using the specified predecessor and when-condition.
        Parameters:
        predecessor - JobPlan task
        when - Expected status or null if status should not be set
    • Method Detail

      • getWhen

        public TaskState getWhen()
        Gets the expected status of the predecessor.
        Returns:
        TaskState containing the expected status
      • setWhen

        public void setWhen​(TaskState when)
        Sets the expected status of the predecessor.
        Parameters:
        when - TaskState containing the expected status
      • getPreLnr

        protected int getPreLnr()
      • getTask

        public JobPlanTask getTask()
        Returns the predecessor task.
        Returns:
        Predecessor
      • setTask

        protected void setTask​(JobPlanTask task)
      • store

        protected void store​(com.uc4.util.XMLDocument doc,
                             org.w3c.dom.Element predecessors,
                             int branchType)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object