public class FSMImpl extends Object implements FSM
Constructor and Description |
---|
FSMImpl(StateEngine se,
State startState)
Create an instance of an FSM using the StateEngine
in a particular start state.
|
FSMImpl(StateEngine se,
State startState,
boolean debug) |
Modifier and Type | Method and Description |
---|---|
void |
doIt(Input in)
Perform the transition for the given input in the current state.
|
State |
getState()
Return the current state.
|
void |
internalSetState(State nextState) |
public FSMImpl(StateEngine se, State startState)
public FSMImpl(StateEngine se, State startState, boolean debug)
public void doIt(Input in)
Let S be the current state of the FSM. If there are guarded actions for S with input in, evaluate their guards successively until all have been evaluted, or one returns a non-DISABLED Result.
public void internalSetState(State nextState)
Copyright © 2018 JBoss by Red Hat. All rights reserved.