Class StateMultiMatchInfo
- java.lang.Object
-
- org.apache.iotdb.commons.path.fa.match.StateMultiMatchInfo
-
- All Implemented Interfaces:
IStateMatchInfo
public class StateMultiMatchInfo extends java.lang.Object implements IStateMatchInfo
This class is used for cases need traceback.
-
-
Constructor Summary
Constructors Constructor Description StateMultiMatchInfo(IPatternFA patternFA)StateMultiMatchInfo(IPatternFA patternFA, IFAState matchedState, java.util.Iterator<IFATransition> sourceTransitionIterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMatchedState(IFAState state)IFAStategetMatchedState(int stateOrdinal)intgetMatchedStateSize()IFAStategetOneMatchedState()intgetSourceStateOrdinal()java.util.Iterator<IFATransition>getSourceTransitionIterator()booleanhasFinalState()booleanhasNoPreciseMatchTransition()booleanhasOnlyPreciseMatchTransition()booleanisSingleFuzzyMatchTransition()voidsetSourceStateOrdinal(int sourceStateOrdinal)voidsetSourceTransitionIterator(java.util.Iterator<IFATransition> sourceTransitionIterator)
-
-
-
Constructor Detail
-
StateMultiMatchInfo
public StateMultiMatchInfo(IPatternFA patternFA)
-
StateMultiMatchInfo
public StateMultiMatchInfo(IPatternFA patternFA, IFAState matchedState, java.util.Iterator<IFATransition> sourceTransitionIterator)
-
-
Method Detail
-
hasFinalState
public boolean hasFinalState()
- Specified by:
hasFinalStatein interfaceIStateMatchInfo- Returns:
- whether current matched state has a final state
-
hasOnlyPreciseMatchTransition
public boolean hasOnlyPreciseMatchTransition()
- Specified by:
hasOnlyPreciseMatchTransitionin interfaceIStateMatchInfo- Returns:
- whether the transitions, current matched states have, are only precise match transition, that only matches specified event rather than batch events
-
hasNoPreciseMatchTransition
public boolean hasNoPreciseMatchTransition()
- Specified by:
hasNoPreciseMatchTransitionin interfaceIStateMatchInfo- Returns:
- whether none of the transitions, current matched states have, is precise match transition, that only matches specified event rather than batch events
-
isSingleFuzzyMatchTransition
public boolean isSingleFuzzyMatchTransition()
- Specified by:
isSingleFuzzyMatchTransitionin interfaceIStateMatchInfo- Returns:
- whether current match state only have one transition, and it is a fuzzy transition that may match batch events
-
getOneMatchedState
public IFAState getOneMatchedState()
- Specified by:
getOneMatchedStatein interfaceIStateMatchInfo- Returns:
- one of the matched state
-
addMatchedState
public void addMatchedState(IFAState state)
- Specified by:
addMatchedStatein interfaceIStateMatchInfo
-
getMatchedState
public IFAState getMatchedState(int stateOrdinal)
- Specified by:
getMatchedStatein interfaceIStateMatchInfo- Parameters:
stateOrdinal- the target state's ordinal of matched order- Returns:
- the ordinal(th) matched state
-
getMatchedStateSize
public int getMatchedStateSize()
- Specified by:
getMatchedStateSizein interfaceIStateMatchInfo- Returns:
- size of current matched states
-
getSourceStateOrdinal
public int getSourceStateOrdinal()
- Specified by:
getSourceStateOrdinalin interfaceIStateMatchInfo- Returns:
- the ordinal of the source state in matched order
-
setSourceStateOrdinal
public void setSourceStateOrdinal(int sourceStateOrdinal)
- Specified by:
setSourceStateOrdinalin interfaceIStateMatchInfo- Parameters:
sourceStateOrdinal- the ordinal of the source state in matched order
-
getSourceTransitionIterator
public java.util.Iterator<IFATransition> getSourceTransitionIterator()
- Specified by:
getSourceTransitionIteratorin interfaceIStateMatchInfo- Returns:
- the iterator of current checking source states' transition
-
setSourceTransitionIterator
public void setSourceTransitionIterator(java.util.Iterator<IFATransition> sourceTransitionIterator)
- Specified by:
setSourceTransitionIteratorin interfaceIStateMatchInfo- Parameters:
sourceTransitionIterator- the iterator of current checking source states' transition
-
-