public class Runner extends Object
Constructor and Description |
---|
Runner(FSM fsm)
Create a new Runner with fsm on top of the stack.
|
Runner(FSM fsm,
boolean debug) |
Modifier and Type | Method and Description |
---|---|
void |
doIt(Input in)
Perform the transition for the given input in the current state.
|
boolean |
done()
Return true if the stack is empty, which means that the runner is
finished.
|
FSM |
peek()
Return the top fsm on the stack.
|
FSM |
pop() |
void |
push(FSM fsm)
Push a new fsm onto the stack.
|
public Runner(FSM fsm)
public Runner(FSM fsm, boolean debug)
public FSM peek()
public void push(FSM fsm)
public FSM pop()
public boolean done()
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.
Copyright © 2017 Oracle. All rights reserved.