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 java.lang.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(java.lang.Object transitionID, DFSAState<T,S> source, DFSAState<T,S> target, T input, java.lang.Object output, double score)
           
 
Method Summary
 java.lang.Object getID()
           
 T getInput()
           
 java.lang.Object getOutput()
           
 DFSAState<T,S> getSource()
           
 DFSAState<T,S> getTarget()
           
 T input()
           
 java.lang.Object output()
           
 double score()
           
 DFSAState<T,S> source()
           
 DFSAState<T,S> target()
           
 java.lang.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(java.lang.Object transitionID,
                      DFSAState<T,S> source,
                      DFSAState<T,S> target,
                      T input,
                      java.lang.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 java.lang.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 java.lang.Object getOutput()

output

public java.lang.Object output()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Stanford NLP Group