org.oddjob.state
Class CompleteOrNotOp

java.lang.Object
  extended by org.oddjob.state.CompleteOrNotOp
All Implemented Interfaces:
StateOperator

public class CompleteOrNotOp
extends Object
implements StateOperator

Implementation of a StateOperator that is either complete if all the children are complete, or not.

This is used by scheduling.

Author:
rob

Constructor Summary
CompleteOrNotOp()
           
 
Method Summary
 ParentState evaluate(State... states)
          Evaluate the given states.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompleteOrNotOp

public CompleteOrNotOp()
Method Detail

evaluate

public ParentState evaluate(State... states)
Description copied from interface: StateOperator
Evaluate the given states.

Specified by:
evaluate in interface StateOperator
Parameters:
states - The states.
Returns:
The result state.