com.karneim.util.collection.automaton

Class Automaton.State.Transition

public final class Automaton.State.Transition extends Object

Field Summary
ISet_charcharSet
Automaton.State.Transitionnext
IPropertiesproperties
Automaton.StatetoState
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
voidaddVisitedListener(Automaton.ITransitionVisitedListener listener)
ISet_chargetCharSet()
Automaton.StategetFromState()
Automaton.StategetToState()
booleanremoveVisitedListener(Automaton.ITransitionVisitedListener listener)
StringtoString()
Automaton.Statevisit()

Field Detail

charSet

public final ISet_char charSet

public Automaton.State.Transition next

properties

public IProperties properties

toState

public final Automaton.State toState

Constructor Detail

Transition

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 Detail

addVisitedListener

public void addVisitedListener(Automaton.ITransitionVisitedListener listener)

getCharSet

public ISet_char getCharSet()

getFromState

public Automaton.State getFromState()

getToState

public Automaton.State getToState()

removeVisitedListener

public boolean removeVisitedListener(Automaton.ITransitionVisitedListener listener)

toString

public String toString()

visit

public final Automaton.State visit()