Package pygar.state

Class StateMachine.Context

java.lang.Object
pygar.state.StateMachine.Context
Direct Known Subclasses:
PmessageStateMachine.Context
Enclosing class:
StateMachine<T>

public class StateMachine.Context
extends java.lang.Object
Class Context defines the data for observers of this state machine.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String endState  
    java.lang.String event  
    java.lang.String startState  
  • Constructor Summary

    Constructors 
    Constructor Description
    Context​(java.lang.String start, java.lang.String end, java.lang.String e)  
    Context​(StateMachine.Context c)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • startState

      public volatile java.lang.String startState
    • endState

      public volatile java.lang.String endState
    • event

      public volatile java.lang.String event
  • Constructor Details

  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object