Package ca.phon.phonex
Class PhonexTransition
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
BackReferenceTransition
,BeginningOfInputTransition
,EmptyTransition
,EndOfInputTransition
,SyllableBoundaryTransition
,SyllableTransition
,WordBoundaryTransition
Transitions using
PhoneMatcher
s.-
Constructor Summary
ConstructorDescriptionPhonexTransition
(PhoneMatcher matcher) Create a new transition with the given base phone matcherPhonexTransition
(PhoneMatcher matcher, PhoneMatcher... secondaryMatchers) Create a new transitions with the given base matcher and secondary matchers -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSecondaryMatcher
(PhoneMatcher typeMatcher) Set the type matcherclone()
boolean
follow
(FSAState<IPAElement> currentState) Determines if the fsa will follow the transition given the current running state.getImage()
Get the base phone matcherGet the secondary matchersvoid
removeSecondaryMatcher
(PhoneMatcher matcher) Remove secondary matcherMethods inherited from class ca.phon.fsa.FSATransition
copyTransitionInfo, getFirstState, getInitGroups, getMatcherGroups, getMatchLength, getOffsetType, getToState, getType, setFirstState, setImage, setOffsetType, setToState, setType, setupTransition
-
Constructor Details
-
PhonexTransition
Create a new transition with the given base phone matcher- Parameters:
matcher
-
-
PhonexTransition
Create a new transitions with the given base matcher and secondary matchers- Parameters:
matcher
-secondaryMatchers
-
-
-
Method Details
-
getMatcher
Get the base phone matcher- Returns:
- the base phone matcher
-
getSecondaryMatchers
Get the secondary matchers- Returns:
- the list secondary
PhoneMatcher
matcher
-
addSecondaryMatcher
Set the type matcher- Parameters:
typeMatcher
-
-
removeSecondaryMatcher
Remove secondary matcher- Parameters:
matcher
-
-
follow
Description copied from class:FSATransition
Determines if the fsa will follow the transition given the current running state.- Specified by:
follow
in classFSATransition<IPAElement>
- Parameters:
currentState
- the current machine state- Returns:
true
if this transition can be followed given the current state,false
otherwise
-
getImage
- Overrides:
getImage
in classFSATransition<IPAElement>
-
clone
-