State
class State( val name: String, val isStart: Boolean = false, var isAcceptingState: Boolean = false) : Cloneable
Content copied to clipboard
A simple class representing a state in an FSM.
name is the name of the State and must be unique for the FSM.
isStart indicates if it is the starting state.
isAcceptingState indicates if this State accepts the FSM (in our case, this means that the order of statements was correct).
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
fun cloneRecursively(currentStates: MutableSet<State> = mutableSetOf()): MutableSet<State>
Content copied to clipboard
Link copied to clipboard
Returns a Pair holding the next State when the edge with the operation op is executed and the BaseOpEdge which is executed. If no matching edge exists for this State, returns null.