Interface StateContext
- All Known Implementing Classes:
AbstractStateContext, DefaultStateContext
public interface StateContext
StateContext objects are used to store the current State and
any application specific attributes for a specific client of a
StateMachine. Since StateMachines are singletons and shared
by all clients using the StateMachine this is where client specific
data needs to be stored.-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(Object key) Returns the value of the attribute with the specified key ornullif not found.voidsetAttribute(Object key, Object value) Sets the value of the attribute with the specified key.voidsetCurrentState(State state) Sets the currentState.
-
Method Details
-
getCurrentState
-
setCurrentState
-
getAttribute
-
setAttribute
-