Package com.uc4.api.objects
Interface Condition
-
- All Known Implementing Classes:
CheckActivitiesCondition
,CheckConnectionCondition
,CheckFileCondition
,CheckHistoryCondition
,CheckProcessCondition
,CurrentQueueCondition
,CurrentTimeCondition
,ReturnCodeCondition
,StatusCondition
,TimeSinceActivationCondition
,UserDefinedCondition
public interface Condition
Condition of a JobPlan task (PreCondition or PostCondition).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addElse(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed when this condition is false.void
addWhen(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed when this condition is true.java.util.Iterator<ConditionOrAction>
elseIterator()
The returned iterator can be used to get the actions/conditions which are executed when this condition is false.int
elseSize()
Returns the number of action/conditions which should be executed when this condition is false.java.lang.String
getId()
boolean
isAfterCondition()
boolean
isBeforeCondition()
java.util.Iterator<ConditionOrAction>
whenIterator()
The returned iterator can be used to get the actions/conditions which are executed when this condition is true.int
whenSize()
Returns the number of action/conditions which should be executed when this condition is true.
-
-
-
Method Detail
-
isBeforeCondition
boolean isBeforeCondition()
- Returns:
- true if this condition can be used as Pre-Condition
-
isAfterCondition
boolean isAfterCondition()
- Returns:
- true if this condition can be used as Post-Condition
-
addWhen
void addWhen(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed when this condition is true.- Parameters:
item
- Condition or Action
-
addElse
void addElse(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed when this condition is false.- Parameters:
item
- Condition or Action
-
whenSize
int whenSize()
Returns the number of action/conditions which should be executed when this condition is true.- Returns:
- Number of conditions/actions
-
elseSize
int elseSize()
Returns the number of action/conditions which should be executed when this condition is false.- Returns:
- Number of conditions/actions
-
whenIterator
java.util.Iterator<ConditionOrAction> whenIterator()
The returned iterator can be used to get the actions/conditions which are executed when this condition is true. The remove() method of thejava.util.Iterator
can be used to remove conditions or actions.- Returns:
- Iterator
-
elseIterator
java.util.Iterator<ConditionOrAction> elseIterator()
The returned iterator can be used to get the actions/conditions which are executed when this condition is false. The remove() method of thejava.util.Iterator
can be used to remove conditions or actions.- Returns:
- Iterator
-
getId
java.lang.String getId()
- Returns:
- Unique ID of this condition
-
-