Package pygar.state
Class OrderedStateMachine<T>
java.lang.Object
java.util.Observable
pygar.state.StateMachine<T>
pygar.state.OrderedStateMachine<T>
- Type Parameters:
T
-
public class OrderedStateMachine<T> extends StateMachine<T>
OrderedStateMachine is a StateMachine for which the states are defined in a
particular order. The order is useful for some graphical representations of state
transition sequences.
N.B. This class is not used currently anywhere. See SequenceMachine
-
Nested Class Summary
Nested classes/interfaces inherited from class pygar.state.StateMachine
StateMachine.Context, StateMachine.TransitionPt1, StateMachine.TransitionPt2, StateMachine.TransitionPt3
-
Constructor Summary
Constructors Constructor Description OrderedStateMachine(java.lang.String start, java.lang.String[] states)
-
Method Summary
Modifier and Type Method Description int
compare(java.lang.String state1, java.lang.String state2)
Methods inherited from class pygar.state.StateMachine
_getStateContext, acceptContextFreeEvent, acceptEvent, addTransition, addTransition, getState, main, notifyObservers, notifyObservers, setState
-
Constructor Details
-
OrderedStateMachine
public OrderedStateMachine(java.lang.String start, java.lang.String[] states)
-
-
Method Details
-
compare
public int compare(java.lang.String state1, java.lang.String state2)
-