class

Pegasus::Automata::State(V, T)

Inherits Reference / Object

A generic state for an automaton, with transitions labeled by T and values of V.

Constructors

new(*, id : Int64, data : V, transitions : Hash(T, Pegasus::Automata::State(V, T)) = Hash(T, self).new)

Creates a new state with the given ID, data, and transitions.

Source

Instance methods

data

The additional data the state holds.

Source
id

The unique ID of the state.

Source
transitions

The transitions from this state to other states.

Source