public class JobPlanDependencies extends java.lang.Object implements java.lang.Iterable<JobPlanTaskDependency>
Modifier and Type | Method and Description |
---|---|
void |
addDependency(JobPlanTask task)
Adds a dependency without a certain status.
|
protected void |
addDependency(JobPlanTask predecessor,
int branchType)
Adds a dependency without a certain status.
|
protected void |
addDependency(JobPlanTask predecessor,
int branchType,
TaskState taskState)
Adds a dependency with a certain status.
|
void |
addDependency(JobPlanTask predecessor,
TaskState when)
Adds a dependency.
|
void |
addSuccessorTask(JobPlanTask task)
Adds the given task to the successor list.
|
void |
clear()
Removes all dependencies.
|
JobPlanDependencies |
copy(JobPlanTask jobPlanTask)
Creates a deep copy of this object and all it's properties except for the predecessor and successor object lists.
|
protected void |
decrementPreCounter() |
UC4ObjectName |
getElseExecute()
Returns the object that should be executed when a defined condition does
not occur.
|
int |
getLatestEndDays()
Returns the number of days for the latest end time of this task.
|
Time |
getLatestEndTime()
Returns the
Time for the latest end of this task. |
int |
getLatestStartDays()
Returns the number of days for the latest start time of this task.
|
Time |
getLatestStartTime()
Returns the
Time for the latest start of this task. |
protected int |
getPreCounter() |
UC4TimezoneName |
getTimezone()
Returns the TimeZone that is to be used.
|
boolean |
isAtTheLatest()
Returns
true if the latest start and end time is enabled. |
boolean |
isElseAbort()
Returns
true if the task and the JobPlan itself are canceled
when the defined conditions do not occur. |
boolean |
isElseBlock()
Returns
true if the JobPlan blocks at the preceding task. |
boolean |
isElseBlockAndAbort()
Returns
true if the JobPlan blocks at the preceding task. |
boolean |
isElseSkip()
Returns
true if the task will be skipped when the defined
conditions do not occur. |
boolean |
isLatestEnd()
Returns
true if the latest end time is selected. |
boolean |
isLatestStart()
Returns
true if the latest start time is selected. |
boolean |
isStatusMatchAll()
Returns
true if all predecessors must end with the
determined status (AND Link). |
boolean |
isStatusMatchOne()
Returns
true if at least one predecessor ends as defined. |
java.util.Iterator<JobPlanTaskDependency> |
iterator()
Returns an iterator over
JobPlanTaskDependency This iterator
cannot be used to remove dependencies. |
protected void |
prepareLnrSort() |
protected void |
removeAll() |
boolean |
removeDependency(JobPlanTaskDependency dependency)
Removes the specified dependency.
|
void |
selectLatestEnd()
Enables the check for the latest end time.
|
void |
selectLatestStart()
Enables the check for the latest start time.
|
void |
setAtTheLatest(boolean atTheLatest)
Enables or disables the latest start and end time.
|
protected void |
setDependencyListener(IChangeListener listener) |
void |
setElseAbort()
The task and the JobPlan itself are canceled when the defined conditions
do not occur.
|
void |
setElseBlock()
The JobPlan blocks at the preceding task when the defined conditions do
not occur.
|
void |
setElseBlockAndAbort()
The JobPlan blocks at the preceding task.
|
void |
setElseExecute(UC4ObjectName elseExecute)
Sets the object that should be executed when a defined condition does not
occur.
|
void |
setElseSkip()
Skips the task if the defined conditions do not occur.
|
void |
setLatestEndDays(int latestEndDays)
Sets the number of days for the latest end time of this task.
|
void |
setLatestEndTime(Time latestEndTime)
Sets the
Time for the latest end of this task. |
void |
setLatestStartDays(int latestStartDays)
Sets the number of days for the latest start time of this task.
|
void |
setLatestStartTime(Time latestStartTime)
Sets the
Time for the latest start of this task. |
void |
setStatusMatchAll()
The task will only be executed if all predecessors end with the
determined status (AND Link).
|
void |
setStatusMatchOne()
The task will only be executed if at least one predecessor ends as
defined (OR Link).
|
void |
setTimezone(UC4TimezoneName timezone)
Sets the TimeZone that is to be used.
|
int |
size()
Gets the number of predecessor dependencies.
|
java.util.Iterator<JobPlanTask> |
successorIterator() |
public JobPlanDependencies copy(JobPlanTask jobPlanTask)
jobPlanTask
- The task to which this dependency object belongs.public boolean isAtTheLatest()
true
if the latest start and end time is enabled.public void setAtTheLatest(boolean atTheLatest)
atTheLatest
- True if latest start and end time should be enabledpublic int getLatestEndDays()
public void setLatestEndDays(int latestEndDays)
latestEndDays
- Number of days for the latest end timepublic Time getLatestEndTime()
Time
for the latest end of this task.public void setLatestEndTime(Time latestEndTime)
Time
for the latest end of this task.latestEndTime
- Time of the latest endpublic int getLatestStartDays()
public void setLatestStartDays(int latestStartDays)
latestStartDays
- Number of days for the latest start timepublic Time getLatestStartTime()
Time
for the latest start of this task.public void setLatestStartTime(Time latestStartTime)
Time
for the latest start of this task.latestStartTime
- Time of the latest startpublic UC4TimezoneName getTimezone()
public void setTimezone(UC4TimezoneName timezone)
timezone
- TimeZone that is to be usedpublic void selectLatestStart()
public void selectLatestEnd()
public boolean isLatestStart()
true
if the latest start time is selected.public boolean isLatestEnd()
true
if the latest end time is selected.public void setElseSkip()
public boolean isElseSkip()
true
if the task will be skipped when the defined
conditions do not occur.public void setElseBlock()
This does not apply to tasks running parallel within the JobPlan, they are continuing to be processed. The JobPlan as a whole will not block until they have been executed. If there are no parallel running tasks, the task and the JobPlan are blocked immediately.
public boolean isElseBlock()
true
if the JobPlan blocks at the preceding task.
when the defined conditions do not occur.public void setElseBlockAndAbort()
This does not apply to tasks running parallel within the JobPlan, their processing is being continued. The JobPlan as a whole will not block until they have been executed. If there are no parallel running tasks, the task and the JobPlan are blocked immediately.
If a superordinate JobPlan (parent) is available, a signal indicating an abnormal end is sent to it. The superordinate JobPlan then considers this blocked JobPlan as canceled. Without this signal being sent, the JobPlan (although being blocked) would be considered active by the superordinate JobPlan, as processing has not yet been ended. All successors would then be in the status "Waiting for precondition", which included a standstill of this JobPlan branch.
public boolean isElseBlockAndAbort()
true
if the JobPlan blocks at the preceding task.public void setElseAbort()
public boolean isElseAbort()
true
if the task and the JobPlan itself are canceled
when the defined conditions do not occur.public UC4ObjectName getElseExecute()
public void setElseExecute(UC4ObjectName elseExecute)
elseExecute
- Object that should be executedpublic void setStatusMatchAll()
public void setStatusMatchOne()
public boolean isStatusMatchAll()
true
if all predecessors must end with the
determined status (AND Link).public boolean isStatusMatchOne()
true
if at least one predecessor ends as defined.public java.util.Iterator<JobPlanTaskDependency> iterator()
JobPlanTaskDependency
This iterator
cannot be used to remove dependencies. Use the method
removeDependency
instead.iterator
in interface java.lang.Iterable<JobPlanTaskDependency>
protected void prepareLnrSort()
protected void decrementPreCounter()
protected int getPreCounter()
public void addDependency(JobPlanTask predecessor, TaskState when)
predecessor
- Predecessor taskwhen
- Expected status of the predecessorpublic void clear()
public boolean removeDependency(JobPlanTaskDependency dependency)
dependency
- Task dependencyprotected void removeAll()
public void addSuccessorTask(JobPlanTask task)
task
- The task to add as successor.protected void setDependencyListener(IChangeListener listener)
public int size()
public java.util.Iterator<JobPlanTask> successorIterator()
public void addDependency(JobPlanTask task)
task
- Predecessorprotected void addDependency(JobPlanTask predecessor, int branchType)
task
- Predecessorprotected void addDependency(JobPlanTask predecessor, int branchType, TaskState taskState)
predecessor
- Task to be added as dependency.branchType
- Branch Type of the Dependency.taskState
- Status/State of the task being added as dependency.