|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--guk.im.State
A state of the LocaleHandler
FSM.
Field Summary | |
(package private) boolean |
finalState
Is this state final? |
(package private) Map |
transitionFunction
The transition function for this state. |
Constructor Summary | |
State()
Default constructor; creates a non final state |
|
State(boolean isFinal)
Creates a new state |
Method Summary | |
Action |
addAction(Key key,
Action action)
Adds anew action to this state. |
Action |
getNext(Key key)
Gets the action this state will activate for a given Key |
boolean |
hasNext()
Has this state any actions? |
boolean |
isFinal()
Is this state final? |
void |
setFinal(boolean pFinal)
Sets the final attribute. |
Methods inherited from class java.lang.Object |
|
Field Detail |
Map transitionFunction
boolean finalState
Constructor Detail |
public State(boolean isFinal)
isFinal
- public State()
Method Detail |
public Action addAction(Key key, Action action)
key
- action
- public Action getNext(Key key)
Key
key
- public boolean isFinal()
public boolean hasNext()
public void setFinal(boolean pFinal)
pFinal
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |