Package org.apache.iotdb.commons.path.fa
Interface IPatternFA
-
- All Known Implementing Classes:
PatternDFA,SimpleNFA
public interface IPatternFAThis interface defines the behaviour of a FA(Finite Automation), generated from a path pattern or a pattern tree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIPatternFA.Builder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Iterator<IFATransition>getFuzzyMatchTransitionIterator(IFAState state)intgetFuzzyMatchTransitionSize(IFAState state)IFAStategetInitialState()IFAStategetNextState(IFAState sourceState, IFATransition transition)java.util.Map<java.lang.String,IFATransition>getPreciseMatchTransition(IFAState state)java.util.Iterator<IFATransition>getPreciseMatchTransitionIterator(IFAState state)IFAStategetState(int index)intgetStateSize()booleanmayTransitionOverlap()Determines if there is overlap between the state transfer events of this FA.
-
-
-
Method Detail
-
getPreciseMatchTransition
java.util.Map<java.lang.String,IFATransition> getPreciseMatchTransition(IFAState state)
- Parameters:
state- the source state of the returned transitions- Returns:
- transitions, that the given state has and only match one specified event rather than batch events
-
getPreciseMatchTransitionIterator
java.util.Iterator<IFATransition> getPreciseMatchTransitionIterator(IFAState state)
- Parameters:
state- the source state of the returned transitions- Returns:
- transitions, that the given state has and only match one specified event rather than batch events
-
getFuzzyMatchTransitionIterator
java.util.Iterator<IFATransition> getFuzzyMatchTransitionIterator(IFAState state)
- Parameters:
state- state the source state of the returned transitions- Returns:
- transitions, that the given state has and can match batch events
-
getFuzzyMatchTransitionSize
int getFuzzyMatchTransitionSize(IFAState state)
- Parameters:
state- state the source state of the returned transitions- Returns:
- num of transitions, that the given state has and can match batch events
-
getNextState
IFAState getNextState(IFAState sourceState, IFATransition transition)
- Parameters:
sourceState- source statetransition- transition that the source state has- Returns:
- next state
-
getInitialState
IFAState getInitialState()
- Returns:
- the initial state of this FA
-
getStateSize
int getStateSize()
- Returns:
- the size of states this FA has
-
getState
IFAState getState(int index)
- Parameters:
index- the index of the target state, used for uniquely identifying states in FA- Returns:
- the state identified by given index
-
mayTransitionOverlap
boolean mayTransitionOverlap()
Determines if there is overlap between the state transfer events of this FA. If it returns true, then there may be overlap. If it returns false, there must be no overlap.- Returns:
- may transition overlap
-
-