Uses of Class
org.glassfish.pfl.basic.fsm.State
-
Packages that use State Package Description org.glassfish.pfl.basic.fsm org.glassfish.pfl.dynamic.codegen.spi -
-
Uses of State in org.glassfish.pfl.basic.fsm
Fields in org.glassfish.pfl.basic.fsm declared as State Modifier and Type Field Description private State
State. defaultNextState
private State
Transition. nextState
private State
FSMImpl. state
Fields in org.glassfish.pfl.basic.fsm with type parameters of type State Modifier and Type Field Description private java.util.Map<State.Kind,java.util.Set<State>>
StateEngine. stateKinds
private java.util.Map<State.Kind,java.util.Set<State>>
StateEngine. unmodifiableStateKinds
Methods in org.glassfish.pfl.basic.fsm that return State Modifier and Type Method Description State
State. getDefaultNextState()
Return the default next state for this state.private State
StateEngine. getDefaultNextState(State currentState)
State
Transition. getNextState()
State
FSM. getState()
Get the current state of this FSM.State
FSMImpl. getState()
Return the current state.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.Methods in org.glassfish.pfl.basic.fsm that return types with arguments of type State Modifier and Type Method Description private java.util.Set<State>
StateEngine. getKindSet(State.Kind kind)
java.util.Set<State>
StateEngine. getStates(State.Kind kind)
Return the set of final states for this state engine.Methods in org.glassfish.pfl.basic.fsm with parameters of type State Modifier and Type Method Description StateEngine
StateEngine. add(State oldState, java.util.Set<Input> input, Action action, State newState)
Repeatedly call add( State, Input, Action, State ) for each element of input.StateEngine
StateEngine. add(State oldState, java.util.Set<Input> input, Guard guard, Action action, State newState)
Repeatedly calls add( State, Input, Guard, Action, State ) for each element of input.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.private Action
StateEngine. getDefaultAction(State currentState)
private State
StateEngine. getDefaultNextState(State currentState)
(package private) void
StateEngine. performStateTransition(Runner runner, Input in, State nextState, Action action, boolean debug)
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.(package private) void
State. setDefaultNextState(State defaultNextState)
void
FSM. setState(State state)
Set the current state of this FSM.void
FSMImpl. setState(State nextState)
private void
StateEngine. updateStateMap(State oldState, State newState)
Constructors in org.glassfish.pfl.basic.fsm with parameters of type State Constructor Description FSMImpl(StateEngine se, State initialState)
Transition(Action action, State nextState)
Transition(Guard guard, Action action, State nextState)
Constructor parameters in org.glassfish.pfl.basic.fsm with type arguments of type State Constructor Description State(java.util.Set<State> states, java.lang.String name)
State(java.util.Set<State> states, java.lang.String name, State.Kind kind)
-
Uses of State in org.glassfish.pfl.dynamic.codegen.spi
Fields in org.glassfish.pfl.dynamic.codegen.spi declared as State Modifier and Type Field Description private static State
Wrapper. S_BODY
private static State
Wrapper. S_CLASS
private static State
Wrapper. S_DEFAULT
private static State
Wrapper. S_DONE
private static State
Wrapper. S_ELSE
private static State
Wrapper. S_FINAL
private static State
Wrapper. S_IF
private static State
Wrapper. S_INIT
private static State
Wrapper. S_METHOD
private static State
Wrapper. S_PACKAGE
private static State
Wrapper. S_SWITCH
private static State
Wrapper. S_TRY
Methods in org.glassfish.pfl.dynamic.codegen.spi with parameters of type State Modifier and Type Method Description private static void
Wrapper. addCommonTransitions(State state)
Constructors in org.glassfish.pfl.dynamic.codegen.spi with parameters of type State Constructor Description Context(java.util.Stack<Wrapper.Context> contexts, State start)
-