Class Automaton.State

  • Enclosing class:
    Automaton

    static class Automaton.State
    extends java.lang.Object
    Node in the finite-state automaton. A state has a number of transitions to other states, each labeled with the symbol that causes that transition.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int id  
    • Constructor Summary

      Constructors 
      Constructor Description
      State​(int id)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        final int id
    • Constructor Detail

      • State

        State​(int id)
    • Method Detail

      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object