org.jminor.common.model
Interface State.StateGroup
- Enclosing interface:
- State
public static interface State.StateGroup
A StateGroup deactivates all other states when a state in the group is activated.
StateGroup works with WeakReference so adding states does not prevent
them from being garbage collected.
Method Summary |
void |
addState(State state)
Adds a state to this state group via a WeakReference,
so it does not prevent it from being garbage collected. |
addState
void addState(State state)
- Adds a state to this state group via a WeakReference,
so it does not prevent it from being garbage collected.
Adding an active state deactivates all other states in the group.
- Parameters:
state
- the State to add