Class State
java.lang.Object
it.tugamer89.autogex.core.State
Represents a state (q) within an automaton.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
State
Constructs a new State.- Parameters:
name- The unique name of the state.isFinal- True if the state is an accepting (final) state.
-
-
Method Details
-
getName
-
isFinal
public boolean isFinal()Checks if the state is a final (accepting) state.- Returns:
- True if final, false otherwise.
-
equals
-
hashCode
-
toString
-