Interface IStateMatchInfo

  • All Known Implementing Classes:
    StateMultiMatchInfo, StateSingleMatchInfo

    public interface IStateMatchInfo
    This interface defines the behaviour of a state match info, which helps make decision during FA Graph traversing
    • Method Detail

      • hasFinalState

        boolean hasFinalState()
        Returns:
        whether current matched state has a final state
      • hasOnlyPreciseMatchTransition

        boolean hasOnlyPreciseMatchTransition()
        Returns:
        whether the transitions, current matched states have, are only precise match transition, that only matches specified event rather than batch events
      • hasNoPreciseMatchTransition

        boolean hasNoPreciseMatchTransition()
        Returns:
        whether none of the transitions, current matched states have, is precise match transition, that only matches specified event rather than batch events
      • isSingleFuzzyMatchTransition

        boolean isSingleFuzzyMatchTransition()
        Returns:
        whether current match state only have one transition, and it is a fuzzy transition that may match batch events
      • getOneMatchedState

        IFAState getOneMatchedState()
        Returns:
        one of the matched state
      • addMatchedState

        void addMatchedState​(IFAState state)
      • getMatchedState

        IFAState getMatchedState​(int stateOrdinal)
        Parameters:
        stateOrdinal - the target state's ordinal of matched order
        Returns:
        the ordinal(th) matched state
      • getMatchedStateSize

        int getMatchedStateSize()
        Returns:
        size of current matched states
      • getSourceStateOrdinal

        int getSourceStateOrdinal()
        Returns:
        the ordinal of the source state in matched order
      • setSourceStateOrdinal

        void setSourceStateOrdinal​(int sourceStateOrdinal)
        Parameters:
        sourceStateOrdinal - the ordinal of the source state in matched order
      • getSourceTransitionIterator

        java.util.Iterator<IFATransition> getSourceTransitionIterator()
        Returns:
        the iterator of current checking source states' transition
      • setSourceTransitionIterator

        void setSourceTransitionIterator​(java.util.Iterator<IFATransition> sourceTransitionIterator)
        Parameters:
        sourceTransitionIterator - the iterator of current checking source states' transition