|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 | |
|---|---|
java.lang.Object |
getAttribute(java.lang.Object key)
Returns the value of the attribute with the specified key or nullif not found. |
State |
getCurrentState()
Returns the current State. |
void |
setAttribute(java.lang.Object key,
java.lang.Object value)
Sets the value of the attribute with the specified key. |
void |
setCurrentState(State state)
Sets the current State. |
| Method Detail |
|---|
State getCurrentState()
State. This is only meant for internal use.
State.void setCurrentState(State state)
State. This is only meant for internal use.
Don't call it directly!
state - the new current State.java.lang.Object getAttribute(java.lang.Object key)
nullif not found.
key - the key.
null.
void setAttribute(java.lang.Object key,
java.lang.Object value)
key - the key.value - the value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||