public class ConditionalOperation
extends java.lang.Object
Condition
and an IOperation
. If the
condition is true, the operation should be executed.Constructor and Description |
---|
ConditionalOperation(IOperation baseOperation) |
Modifier and Type | Method and Description |
---|---|
void |
addOperation(Condition condition,
IOperation operation)
Add a operation that will be executed if the given condition is true.
|
public ConditionalOperation(IOperation baseOperation)
baseOperation
- the IOperation
that should be used for this
ConditionalOperation
. After its execution, its
IOperation.getResponse()
will be used to evaluate which
condition is true and which IOperation
will be started
accordingly.public void addOperation(Condition condition, IOperation operation)
condition
- the Condition
for this operationoperation
- the IOperation
that should be executed