Package | Description |
---|---|
org.glassfish.pfl.basic.fsm |
Modifier and Type | Method and Description |
---|---|
State |
State.getDefaultNextState()
Return the default next state for this state.
|
State |
Transition.getNextState() |
State |
FSMImpl.getState()
Return the current state.
|
State |
FSM.getState()
Get the current state of this FSM.
|
State |
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.
|
Modifier and Type | Method and Description |
---|---|
Set<State> |
StateEngine.getStates(State.Kind kind)
Return the set of final states for this state engine.
|
Modifier and Type | Method and Description |
---|---|
StateEngine |
StateEngine.add(State oldState,
Input input,
Action action,
State newState)
Add a transition with a guard that always evaluates to true.
|
StateEngine |
StateEngine.add(State oldState,
Input input,
Guard guard,
Action action,
State newState)
Add a new transition (old,in,guard,act,new) to the state engine.
|
StateEngine |
StateEngine.add(State oldState,
Set<Input> input,
Action action,
State newState)
Repeatedly call add( State, Input, Action, State ) for each
element of input.
|
StateEngine |
StateEngine.add(State oldState,
Set<Input> input,
Guard guard,
Action action,
State newState)
Repeatedly calls add( State, Input, Guard, Action, State ) for
each element of input.
|
StateEngine |
StateEngine.setDefault(State oldState)
Euaivalent to setDefault( oldState, oldState )
|
StateEngine |
StateEngine.setDefault(State oldState,
Action action,
State newState)
Set the default transition and action for a state.
|
StateEngine |
StateEngine.setDefault(State oldState,
State newState)
Equivalent to setDefault( oldState, act, newState ) where act is an
action that does nothing.
|
void |
FSMImpl.setState(State nextState) |
void |
FSM.setState(State state)
Set the current state of this FSM.
|
Constructor and Description |
---|
FSMImpl(StateEngine se,
State initialState) |
Constructor and Description |
---|
State(Set<State> states,
String name) |
State(Set<State> states,
String name,
State.Kind kind) |
Copyright © 2017 Oracle. All rights reserved.