edu.stanford.nlp.sequences
Class FactoredSequenceListener

java.lang.Object
  extended by edu.stanford.nlp.sequences.FactoredSequenceListener
All Implemented Interfaces:
SequenceListener

public class FactoredSequenceListener
extends Object
implements SequenceListener

Author:
grenager Date: Apr 18, 2005

Constructor Summary
FactoredSequenceListener(SequenceListener model1, SequenceListener model2)
           
 
Method Summary
 void setInitialSequence(int[] sequence)
          Informs this sequence model that the value of the whole sequence is initialized to sequence
 void updateSequenceElement(int[] sequence, int pos, int oldVal)
          Informs this sequence model that the value of the element at position pos has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoredSequenceListener

public FactoredSequenceListener(SequenceListener model1,
                                SequenceListener model2)
Method Detail

updateSequenceElement

public void updateSequenceElement(int[] sequence,
                                  int pos,
                                  int oldVal)
Informs this sequence model that the value of the element at position pos has changed. This allows this sequence model to update its internal model if desired.

Specified by:
updateSequenceElement in interface SequenceListener
Parameters:
sequence -
pos -
oldVal -

setInitialSequence

public void setInitialSequence(int[] sequence)
Informs this sequence model that the value of the whole sequence is initialized to sequence

Specified by:
setInitialSequence in interface SequenceListener
Parameters:
sequence -


Stanford NLP Group