Class PhonexTransition

java.lang.Object
ca.phon.fsa.FSATransition<IPAElement>
ca.phon.phonex.PhonexTransition
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
BackReferenceTransition, BeginningOfInputTransition, EmptyTransition, EndOfInputTransition, SyllableBoundaryTransition, SyllableTransition, WordBoundaryTransition

public class PhonexTransition extends FSATransition<IPAElement> implements Cloneable
Transitions using PhoneMatchers.
  • Constructor Details

    • PhonexTransition

      public PhonexTransition(PhoneMatcher matcher)
      Create a new transition with the given base phone matcher
      Parameters:
      matcher -
    • PhonexTransition

      public PhonexTransition(PhoneMatcher matcher, PhoneMatcher... secondaryMatchers)
      Create a new transitions with the given base matcher and secondary matchers
      Parameters:
      matcher -
      secondaryMatchers -
  • Method Details

    • getMatcher

      public PhoneMatcher getMatcher()
      Get the base phone matcher
      Returns:
      the base phone matcher
    • getSecondaryMatchers

      public List<PhoneMatcher> getSecondaryMatchers()
      Get the secondary matchers
      Returns:
      the list secondary PhoneMatcher matcher
    • addSecondaryMatcher

      public void addSecondaryMatcher(PhoneMatcher typeMatcher)
      Set the type matcher
      Parameters:
      typeMatcher -
    • removeSecondaryMatcher

      public void removeSecondaryMatcher(PhoneMatcher matcher)
      Remove secondary matcher
      Parameters:
      matcher -
    • 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.
      Specified by:
      follow in class FSATransition<IPAElement>
      Parameters:
      currentState - the current machine state
      Returns:
      true if this transition can be followed given the current state, false otherwise
    • getImage

      public String getImage()
      Overrides:
      getImage in class FSATransition<IPAElement>
    • clone

      public Object clone()
      Overrides:
      clone in class Object