Package org.oddjob.state
Interface StateOperator
- All Known Implementing Classes:
AndStateOp,AnyActiveStateOp,AssertNonDestroyed,CompleteOrNotOp,DestroyHandlingStateOp,OrStateOp,ScoringStateOperator,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
Modifier and TypeMethodDescriptionevaluate(StateEvent... states) Evaluate the given states.static StateEventtoParentEvent(StateEvent childEvent, ParentStateConverter parentStateConverter)
-
Method Details
-
evaluate
Evaluate the given states.- Parameters:
states- The states.- Returns:
- The result state.
-
toParentEvent
-