| Modifier and Type | Class and Description |
|---|---|
| public static enum | State.
Kind of state. |
| Modifier and Type | Field and Description |
|---|---|
| private Action | |
| private State | |
| private Map | |
| private Map | |
| private Map | |
| private State. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public Action | |
| public State | |
| public Map | |
| public State. | |
| pack-priv Set | |
| public void | postAction(FSM fsm)
Method that defines action that occurs whenever this state is exited, that is, when the state is changed from this state to a new state. |
| public FSM | |
| public State | returnAction(FSM fsm, FSM nestedFSM)
If this state has Kind REFERENCE, and its preAction pushes a nested FSM onto the stack, the returnAction method is called after the nested FSM reaches a final state. |
| pack-priv void | |
| pack-priv void |
| defaultAction | back to summary |
|---|---|
| private Action defaultAction | |
| defaultNextState | back to summary |
|---|---|
| private State defaultNextState | |
| inputMap | back to summary |
|---|---|
| private Map<Input, Set<Transition>> inputMap | |
| inputMapImage | back to summary |
|---|---|
| private Map<Input, Set<Transition>> inputMapImage | |
| inputMapRangeImage | back to summary |
|---|---|
| private Map<Input, Set<Transition>> inputMapRangeImage | |
| kind | back to summary |
|---|---|
| private State. | |
| State | back to summary |
|---|---|
| public State(String name) | |
| State | back to summary |
|---|---|
| public State(String name, State. | |
| State | back to summary |
|---|---|
| public State(Set<State> states, String name) | |
| State | back to summary |
|---|---|
| public State(Set<State> states, String name, State. | |
| addTransition | back to summary |
|---|---|
| pack-priv void addTransition(Input in, Transition ga) | |
| getDefaultAction | back to summary |
|---|---|
| public Action getDefaultAction() Get the default transition action that is used if the default next state is used. | |
| getDefaultNextState | back to summary |
|---|---|
| public State getDefaultNextState() Return the default next state for this state. This is the next state if the input is not found in the action map. | |
| getInputMap | back to summary |
|---|---|
| public Map | |
| getKind | back to summary |
|---|---|
| public State. Return the Kind of this state. | |
| getTransitions | back to summary |
|---|---|
| pack-priv Set | |
| postAction | back to summary |
|---|---|
| public void postAction(FSM fsm) Method that defines action that occurs whenever this state is exited, that is, when the state is changed from this state to a new state. Any exceptions except ThreadDeath thrown by this method are ignored. This method can be overridden in a state implementation if needed. | |
| preAction | back to summary |
|---|---|
| public FSM preAction(FSM fsm) Method that defines action that occurs whenever this state is entered from a different state. preAction is not called on a self-transition. If preAction returns a non-null result, the result becomes the current FSM. Any exceptions except ThreadDeath thrown by this method are ignored. This method can be overridden in a state implementation if needed. | |
| returnAction | back to summary |
|---|---|
| public State returnAction(FSM fsm, FSM nestedFSM) If this state has Kind REFERENCE, and its preAction pushes a nested FSM onto the stack, the returnAction method is called after the nested FSM reaches a final state. The nested FSM is passed into nestedFSM, and fsm is the new top of stack, which is the FSM that was active when the preAction was called. The result is the new state that will be assumed after this REFERENCE's state postAction method is called. If the returnAction method sets the state to a new state, the postAction method is called as usuTransition. Any exceptions except ThreadDeath thrown by this method are ignored. This method can be overridden in a state implementation if needed. | |
| setDefaultAction | back to summary |
|---|---|
| pack-priv void setDefaultAction(Action defaultAction) | |
| setDefaultNextState | back to summary |
|---|---|
| pack-priv void setDefaultNextState(State defaultNextState) | |
A REFERENCE state is handled specially. It is used to call into another state engine much as a normal subroutine call. A REFERENCE state (like a FINAL state) may not have any transitions that leave it. The returnAction method on a REFERENCE state is responsible for setting the state directly.
| Modifier and Type | Field and Description |
|---|---|
| public static final State. | |
| public static final State. | |
| public static final State. | |
| public static final State. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static State. | |
| public static State. |
| FINAL | back to summary |
|---|---|
| public static final State. | |
| INITIAL | back to summary |
|---|---|
| public static final State. | |
| NORMAL | back to summary |
|---|---|
| public static final State. | |
| REFERENCE | back to summary |
|---|---|
| public static final State. | |
| Kind | back to summary |
|---|---|
| private Kind() | |
| valueOf | back to summary |
|---|---|
| public static State. | |
| values | back to summary |
|---|---|
| public static State. | |