Package | Description |
---|---|
org.glassfish.pfl.basic.fsm |
Modifier and Type | Class and Description |
---|---|
static class |
Input.Base |
Modifier and Type | Method and Description |
---|---|
Map<Input,Set<Transition>> |
State.getInputMap() |
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.
|
void |
Action.doIt(FSM fsm,
Input in)
Called by the state engine to perform an action
before a state transition takes place.
|
void |
Runner.doIt(Input in)
Perform the transition for the given input in the current state.
|
void |
StateEngine.doIt(Runner runner,
Input in,
boolean debug)
Actually perform a state transition on the FSM on
the runner.peek() FSM under Input in.
|
Guard.Result |
Guard.evaluate(FSM fsm,
Input in)
Called by the state engine to determine whether a
transition is enabled, defered, or disabled.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Copyright © 2017 Oracle. All rights reserved.