public interface State
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanChangeTo(State state) Returns true if it is possible to change from this state to the given stategetName()Returns the name of this stateReturns a set of states to which one can change from this state
-
Method Details
-
getTransitions
Returns a set of states to which one can change from this state- Returns:
- a set of states to which one can change from this state
-
canChangeTo
Returns true if it is possible to change from this state to the given state- Parameters:
state-- Returns:
- true if is is possible to change from this state to the given state
-
getName
String getName()Returns the name of this state- Returns:
- the name of this state
-