Class StateSingleMatchInfo

  • All Implemented Interfaces:
    IStateMatchInfo

    public class StateSingleMatchInfo
    extends java.lang.Object
    implements IStateMatchInfo
    This class is only used for cases not need traceback yet.
    • Constructor Detail

      • StateSingleMatchInfo

        public StateSingleMatchInfo​(IPatternFA patternFA,
                                    IFAState matchedState)
    • Method Detail

      • hasFinalState

        public boolean hasFinalState()
        Specified by:
        hasFinalState in interface IStateMatchInfo
        Returns:
        whether current matched state has a final state
      • hasOnlyPreciseMatchTransition

        public boolean hasOnlyPreciseMatchTransition()
        Specified by:
        hasOnlyPreciseMatchTransition in interface IStateMatchInfo
        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:
        hasNoPreciseMatchTransition in interface IStateMatchInfo
        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:
        isSingleFuzzyMatchTransition in interface IStateMatchInfo
        Returns:
        whether current match state only have one transition, and it is a fuzzy transition that may match batch events
      • getMatchedState

        public IFAState getMatchedState​(int stateOrdinal)
        Specified by:
        getMatchedState in interface IStateMatchInfo
        Parameters:
        stateOrdinal - the target state's ordinal of matched order
        Returns:
        the ordinal(th) matched state
      • getSourceStateOrdinal

        public int getSourceStateOrdinal()
        Specified by:
        getSourceStateOrdinal in interface IStateMatchInfo
        Returns:
        the ordinal of the source state in matched order
      • setSourceStateOrdinal

        public void setSourceStateOrdinal​(int sourceStateOrdinal)
        Specified by:
        setSourceStateOrdinal in interface IStateMatchInfo
        Parameters:
        sourceStateOrdinal - the ordinal of the source state in matched order
      • setSourceTransitionIterator

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