Modifier and Type | Method and Description |
---|---|
static State.AggregateState |
aggregateState(Conjunction conjunction,
StateObserver... stateObservers)
Instantiates a new State.AggregateState object.
|
static State.Group |
group(State... states)
Instantiates a new State.Group object, which guarantees that only a single
state within the group is active at a time
|
static State |
state()
Instantiates a new 'false' State object.
|
static State |
state(boolean value)
Instantiates a new State object.
|
public static State state()
public static State state(boolean value)
value
- the initial state valuepublic static State.AggregateState aggregateState(Conjunction conjunction, StateObserver... stateObservers)
conjunction
- the conjunction to usestateObservers
- the state observers to base this aggregate state onpublic static State.Group group(State... states)
states
- the states to add to the group initially, not requiredState.Group