Package com.uc4.api.objects
Class JobPlanTaskDependency
- java.lang.Object
-
- com.uc4.api.objects.JobPlanTaskDependency
-
public class JobPlanTaskDependency extends java.lang.Object
This class represents a single JobPlan dependency.
-
-
Constructor Summary
Constructors Modifier Constructor Description JobPlanTaskDependency(JobPlanTask predecessor, TaskState when)
Creates aJobPlanTaskDependency
using the specified predecessor and when-condition.protected
JobPlanTaskDependency(org.w3c.dom.Element pre)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
protected int
getPreLnr()
JobPlanTask
getTask()
Returns the predecessor task.TaskState
getWhen()
Gets the expected status of the predecessor.int
hashCode()
protected void
setTask(JobPlanTask task)
void
setWhen(TaskState when)
Sets the expected status of the predecessor.protected void
store(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 aJobPlanTaskDependency
using 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-