edu.stanford.nlp.fsm
Class DFSATransition<T,S>

java.lang.Object
  extended by edu.stanford.nlp.fsm.DFSATransition<T,S>
All Implemented Interfaces:
Scored

public final class DFSATransition<T,S>
extends Object
implements Scored

(D)FSA Transition

Class for representing a transition in a weighted finite state transducer. For now, just null out fields that may not apply. This should really be FSATransition as there's nothing deterministic-specific. If FSA is ever made, this should be abstracted. The ID is a descriptor, not a unique ID.

Author:
Dan Klein

Field Summary
protected  DFSAState<T,S> target
           
 
Constructor Summary
DFSATransition(Object transitionID, DFSAState<T,S> source, DFSAState<T,S> target, T input, Object output, double score)
           
 
Method Summary
 Object getID()
           
 T getInput()
           
 Object getOutput()
           
 DFSAState<T,S> getSource()
           
 DFSAState<T,S> getTarget()
           
 T input()
           
 Object output()
           
 double score()
           
 DFSAState<T,S> source()
           
 DFSAState<T,S> target()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

protected DFSAState<T,S> target
Constructor Detail

DFSATransition

public DFSATransition(Object transitionID,
                      DFSAState<T,S> source,
                      DFSAState<T,S> target,
                      T input,
                      Object output,
                      double score)
Method Detail

getSource

public DFSAState<T,S> getSource()

source

public DFSAState<T,S> source()

getTarget

public DFSAState<T,S> getTarget()

target

public DFSAState<T,S> target()

getID

public Object getID()

score

public double score()
Specified by:
score in interface Scored
Returns:
The score of this thing.

getInput

public T getInput()

input

public T input()

getOutput

public Object getOutput()

output

public Object output()

toString

public String toString()
Overrides:
toString in class Object


Stanford NLP Group