org.jminor.common.model
Class States

java.lang.Object
  extended by org.jminor.common.model.States

public final class States
extends Object

A factory class for State objects.

See Also:
State

Method Summary
static State.AggregateState aggregateState(Conjunction conjunction, StateObserver... stateObservers)
          Instantiates a new State.AggregateState object.
static State state()
          Instantiates a new State object.
static State state(boolean initialState)
          Instantiates a new State object.
static State.StateGroup stateGroup()
          Instantiates a new State.StateGroup object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

state

public static State state()
Instantiates a new State object.

Returns:
a new State

state

public static State state(boolean initialState)
Instantiates a new State object.

Parameters:
initialState - the initial state
Returns:
a new State

aggregateState

public static State.AggregateState aggregateState(Conjunction conjunction,
                                                  StateObserver... stateObservers)
Instantiates a new State.AggregateState object.

Parameters:
conjunction - the conjunction to use
stateObservers - the state observers to base this aggregate state on
Returns:
a new State.AggregateState

stateGroup

public static State.StateGroup stateGroup()
Instantiates a new State.StateGroup object.

Returns:
a new State.StateGroup