geneseo.cs.compiler
Class Transition

java.lang.Object
  |
  +--geneseo.cs.compiler.Transition

public class Transition
extends java.lang.Object

Represents a transition in a finite transducer. The two key pieces of information about any transition are the state that it goes to, and an integer that represents a set of "action flags" -- nominally bits that are on if a transducer should take a certain action on this transition, and off if not. Finite transducer objects return the action flags to their clients every time they make a transition. Clients can interpret these flags in any way that they like.

See Also:
FiniteTransducer

Field Summary
 int acts
          The transition's action flags.
 int nextState
          The state that this transition goes to.
 
Constructor Summary
Transition(int state, int flags)
          Initialize a transition going to a given state, with certain actions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextState

public int nextState
The state that this transition goes to.

acts

public int acts
The transition's action flags.
Constructor Detail

Transition

public Transition(int state,
                  int flags)
Initialize a transition going to a given state, with certain actions.
Parameters:
state - The state to which the transition goes.
flags - The action flags.