Interface IPatternFA

  • All Known Implementing Classes:
    PatternDFA, SimpleNFA

    public interface IPatternFA
    This interface defines the behaviour of a FA(Finite Automation), generated from a path pattern or a pattern tree.
    • 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 state
        transition - 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