com.karneim.util.collection.automaton
public final class Automaton.State.Transition extends Object
Field Summary | |
---|---|
ISet_char | charSet |
Automaton.State.Transition | next |
IProperties | properties |
Automaton.State | toState |
Constructor Summary | |
---|---|
protected | Transition(IProperties properties, ISet_char charSet, Automaton.State toState)
constructs a Transition that can transit with charSet's chars to toState.
if charSet==null, the Transition will be an epsilon transition, which means
that there are no chars needed to get to toState; in other words a state that has an
epsilon transition can get through this epsilon transition to toState
without any char, so that we can say that toState melts into the state. |
Method Summary | |
---|---|
void | addVisitedListener(Automaton.ITransitionVisitedListener listener) |
ISet_char | getCharSet() |
Automaton.State | getFromState() |
Automaton.State | getToState() |
boolean | removeVisitedListener(Automaton.ITransitionVisitedListener listener) |
String | toString() |
Automaton.State | visit() |