Class DFAState

  • All Implemented Interfaces:
    IFAState

    public class DFAState
    extends java.lang.Object
    implements IFAState
    • Constructor Summary

      Constructors 
      Constructor Description
      DFAState​(int state)  
      DFAState​(int state, boolean isFinal)  
    • Constructor Detail

      • DFAState

        public DFAState​(int state)
      • DFAState

        public DFAState​(int state,
                        boolean isFinal)
    • Method Detail

      • getIndex

        public int getIndex()
        Specified by:
        getIndex in interface IFAState
        Returns:
        the index of this state, used for uniquely identifying states in FA
      • isInitial

        public boolean isInitial()
        Specified by:
        isInitial in interface IFAState
        Returns:
        whether this state is the initial state of the belonged FA
      • isFinal

        public boolean isFinal()
        Specified by:
        isFinal in interface IFAState
        Returns:
        whether this state is one of the final state of the belonged FA
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object