E - public static class FiniteAutomaton.State<E>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.List<FiniteAutomaton.Edge<E>> |
edges |
java.util.List<FiniteAutomaton.Epsilon<E>> |
epsilons |
| Constructor and Description |
|---|
FiniteAutomaton.State() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(FiniteAutomaton.State<E> dest)
Add an epsilon transition between this state and dest.
|
void |
connect(FiniteAutomaton.State<E> dest,
Expression<E> cost)
Add an edge between this state and dest.
|
java.lang.String |
toString() |
public final java.util.List<FiniteAutomaton.Edge<E>> edges
public final java.util.List<FiniteAutomaton.Epsilon<E>> epsilons
public void connect(FiniteAutomaton.State<E> dest)
dest - the state to connectpublic void connect(FiniteAutomaton.State<E> dest, Expression<E> cost)
dest - the state to connectcost - the expression of the edgepublic java.lang.String toString()
toString in class java.lang.Object