Class FSATransition<T>
java.lang.Object
ca.phon.fsa.FSATransition<T>
- Direct Known Subclasses:
AnythingTransition,PhonexTransition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyTransitionInfo(FSATransition<?> src, FSATransition<?> dest) Copy information from only transition into anotherabstract booleanDetermines if the fsa will follow the transition given the current running state.getImage()Get the matcher groups started by this transition.Get the matcher groups that following this transition modifies.intThe number of items matched by this transition default is 1.getType()Get typevoidsetFirstState(String firstState) voidvoidsetOffsetType(OffsetType offsetType) voidsetToState(String toState) voidsetType(TransitionType type) Set transition type.static voidsetupTransition(FSATransition<?> transition, String firstState, String toState, String image, TransitionType type, OffsetType offsetType, Collection<Integer> startGroups, Collection<Integer> matcherGroups) Setup transition with given information
-
Constructor Details
-
FSATransition
public FSATransition()
-
-
Method Details
-
copyTransitionInfo
Copy information from only transition into another- Parameters:
src-dest-
-
setupTransition
public static void setupTransition(FSATransition<?> transition, String firstState, String toState, String image, TransitionType type, OffsetType offsetType, Collection<Integer> startGroups, Collection<Integer> matcherGroups) Setup transition with given information- Parameters:
transition-firstState-toState-image-type-offsetType-startGroups-matcherGroups-
-
follow
-
getFirstState
-
setFirstState
-
getToState
-
setToState
-
getImage
-
setImage
-
getMatchLength
public int getMatchLength()The number of items matched by this transition default is 1.- Returns:
- number of items to match on the tape
-
getInitGroups
-
getMatcherGroups
-
getType
-
setType
-
getOffsetType
-
setOffsetType
-