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
  • 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)