Package ca.phon.fsa

Class SimpleFSADebugContext<T>

java.lang.Object
ca.phon.fsa.SimpleFSADebugContext<T>

public class SimpleFSADebugContext<T> extends Object
Class for executing a SimleFSA in a step-by-step manner for the purpose of debugging.
  • Field Details

  • Constructor Details

    • SimpleFSADebugContext

      public SimpleFSADebugContext(SimpleFSA<T> fsa)
  • Method Details

    • getFSA

      public SimpleFSA<T> getFSA()
    • getMachineState

      public FSAState<T> getMachineState()
    • getTransitions

      public List<FSATransition<T>> getTransitions()
    • getCachedState

      public FSAState<T> getCachedState()
    • getCachedTransitions

      public List<FSATransition<T>> getCachedTransitions()
    • getDecisionStack

      public Stack<SimpleFSA.DecisionTracker<T>> getDecisionStack()
    • reset

      public void reset(T[] tape)
    • canStep

      public boolean canStep()
    • step

      public FSATransition<T> step()
      Step and return the transition followed
      Returns:
      the state followed or null if no matching transition found
    • reset

      public void reset()
      Reset execution state