learner
Class Transition
java.lang.Object
learner.Transition
public class Transition
- extends java.lang.Object
The class Transition represents a rewriting. Together, a set of transitions
form a TransitionTable
.
- See Also:
TransitionTable
Constructor Summary |
Transition(RankedSymbol f,
java.util.Vector<java.lang.String> Q,
java.lang.String q)
Create a new transition |
Transition(java.lang.String f,
java.util.Vector<java.lang.String> Q,
java.lang.String q)
Create a new transition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Transition
public Transition(RankedSymbol f,
java.util.Vector<java.lang.String> Q,
java.lang.String q)
- Create a new transition
- Parameters:
f
- an input symbolQ
- a sequence of statesq
- the resulting state
Transition
public Transition(java.lang.String f,
java.util.Vector<java.lang.String> Q,
java.lang.String q)
- Create a new transition
- Parameters:
f
- an input symbol, as a stringQ
- a sequence of statesq
- the resulting state
getF
public RankedSymbol getF()
setF
public void setF(RankedSymbol f)
getNextState
public java.lang.String getNextState()
setNextState
public void setNextState(java.lang.String nextState)
getStates
public java.util.Vector<java.lang.String> getStates()
setStates
public void setStates(java.util.Vector<java.lang.String> states)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object