Package ca.phon.fsa

Class AnythingTransition<T>

java.lang.Object
ca.phon.fsa.FSATransition<T>
ca.phon.fsa.AnythingTransition<T>
Type Parameters:
T -

public class AnythingTransition<T> extends FSATransition<T>
Always returns true, this special transition gets lowest priority (if it exists) when then FSA runs so that other transitions may match first.
  • Constructor Details

    • AnythingTransition

      public AnythingTransition()
  • Method Details

    • follow

      public boolean follow(FSAState<T> obj)
      Description copied from class: FSATransition
      Determines if the fsa will follow the transition given the current running state.
      Specified by:
      follow in class FSATransition<T>
      Parameters:
      obj - the current machine state
      Returns:
      true if this transition can be followed given the current state, false otherwise