learner
Class Transition

java.lang.Object
  extended by 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
 
Method Summary
 RankedSymbol getF()
           
 java.lang.String getNextState()
           
 java.util.Vector<java.lang.String> getStates()
           
 void setF(RankedSymbol f)
           
 void setNextState(java.lang.String nextState)
           
 void setStates(java.util.Vector<java.lang.String> states)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transition

public Transition(RankedSymbol f,
                  java.util.Vector<java.lang.String> Q,
                  java.lang.String q)
Create a new transition

Parameters:
f - an input symbol
Q - a sequence of states
q - 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 string
Q - a sequence of states
q - the resulting state
Method Detail

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