com.karneim.util.collection.automaton
Class Automaton.State.Transition
java.lang.Object
com.karneim.util.collection.automaton.Automaton.State.Transition
- Enclosing class:
- Automaton.State
- public final class Automaton.State.Transition
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
charSet
public final ISet_char charSet
toState
public final Automaton.State toState
properties
public IProperties properties
next
public Automaton.State.Transition next
Automaton.State.Transition
protected Automaton.State.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.
addVisitedListener
public void addVisitedListener(Automaton.ITransitionVisitedListener listener)
removeVisitedListener
public boolean removeVisitedListener(Automaton.ITransitionVisitedListener listener)
visit
public final Automaton.State visit()
getFromState
public Automaton.State getFromState()
getToState
public Automaton.State getToState()
getCharSet
public ISet_char getCharSet()
toString
public java.lang.String toString()