org.oddjob.state
Interface StateOperator

All Known Implementing Classes:
AndStateOp, AnyActiveStateOp, AssertNonDestroyed, CompleteOrNotOp, OrStateOp, ServiceManagerStateOp, WorstStateOp

public interface StateOperator

An operation that provides the result of evaluating many states. These are used by Structural jobs to decide their own state.

It is illegal to pass the JobState.DESTROYED state as an argument. Behaviour is undefined in this instance.

Author:
rob

Method Summary
 ParentState evaluate(State... states)
          Evaluate the given states.
 

Method Detail

evaluate

ParentState evaluate(State... states)
Evaluate the given states.

Parameters:
states - The states.
Returns:
The result state.