Package com.uc4.api.objects
Class JobPlanTaskDependency
- java.lang.Object
-
- com.uc4.api.objects.JobPlanTaskDependency
-
public class JobPlanTaskDependency extends java.lang.ObjectThis class represents a single JobPlan dependency.
-
-
Constructor Summary
Constructors Modifier Constructor Description JobPlanTaskDependency(JobPlanTask predecessor, TaskState when)Creates aJobPlanTaskDependencyusing the specified predecessor and when-condition.protectedJobPlanTaskDependency(org.w3c.dom.Element pre)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)protected intgetPreLnr()JobPlanTaskgetTask()Returns the predecessor task.TaskStategetWhen()Gets the expected status of the predecessor.inthashCode()protected voidsetTask(JobPlanTask task)voidsetWhen(TaskState when)Sets the expected status of the predecessor.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element predecessors, int branchType)
-
-
-
Constructor Detail
-
JobPlanTaskDependency
protected JobPlanTaskDependency(org.w3c.dom.Element pre)
-
JobPlanTaskDependency
public JobPlanTaskDependency(JobPlanTask predecessor, TaskState when)
Creates aJobPlanTaskDependencyusing the specified predecessor and when-condition.- Parameters:
predecessor- JobPlan taskwhen- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-