Class Overview
A description of an FSM
. This is the data structure we use to
traverse the state machine.
Summary
Public Methods |
FSMDescription
|
addState(Enum<?> name)
|
FSMDescription
|
addState(Enum<?> name, StateType type)
|
FSMDescription
|
addState(String name)
Add a state of ACTIVE to the FSM.
|
FSMDescription
|
addState(String name, StateType type)
Add a state to the FSM.
|
FSMDescription
|
addTransition(Enum<?> name, TransitionCondition condition, Enum<?> start, Enum<?> end, Action action)
|
FSMDescription
|
addTransition(String name, TransitionCondition condition, String start, String end, Action action)
Add a transition with TransitionCondition condition
between states start and end to the FSM which
executes the Action action .
|
synchronized
FSMDescription
|
build()
Builds the FSM, making this description immutable.
|
FSMDescription
|
setTransitionAction(Enum<?> transitionName, Action action)
|
FSMDescription
|
setTransitionAction(String transitionName, Action action)
Set the Action associated with transitionName .
|
FSMDescription
|
setTransitionCondition(Enum<?> transitionName, TransitionCondition condition)
|
FSMDescription
|
setTransitionCondition(String transitionName, TransitionCondition condition)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0)
|
final
void
|
wait(long arg0, int arg1)
|
|
Public Constructors
Public Methods
Add a state of ACTIVE
to the FSM.
Add a transition with TransitionCondition
condition
between states start
and end
to the FSM which
executes the Action
action
.
public
synchronized
FSMDescription
build
()
Builds the FSM, making this description immutable.
TODO The point of this function needs to be better defined. It should
create a copy of the description into an immutable container separate
from this instance.
public
FSMDescription
setTransitionAction
(String transitionName, Action action)
Set the Action
associated with transitionName
. Will
overwrite the existing action for this transition.@return
Set the TransitionCondition
associated with
transitionName
. Will overwrite the existing condition for
this transition.