Class NamedReferenceTransition

All Implemented Interfaces:
Cloneable

public class NamedReferenceTransition extends PhonexTransition
Transition for named references in phonex expressions. (e.g., \{1}, \{C}). The group reference may be negated (e.g., \{^1}, \{^C}). When used in aligned expressions, the group reference may be a group which is not currently matched. In this case, the fsa will initially follow the transition and defer the match until the information is available. This is possible because aligned expressions will never increase the tape position and execute on a different tape consisting of the aligned elements.
  • Constructor Details

    • NamedReferenceTransition

      public NamedReferenceTransition(int groupIndex, String groupName, boolean negated)
  • Method Details

    • getGroupIndex

      public int getGroupIndex()
    • getGroupName

      public String getGroupName()
    • isNegated

      public boolean isNegated()
    • follow

      public boolean follow(FSAState<IPAElement> currentState)
      Description copied from class: FSATransition
      Determines if the fsa will follow the transition given the current running state.
      Overrides:
      follow in class PhonexTransition
      Parameters:
      currentState - the current machine state
      Returns:
      true if this transition can be followed given the current state, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object