be.ac.ulg.montefiore.run.jahmm.io
Class ObservationWriter<O extends Observation>

java.lang.Object
  extended by be.ac.ulg.montefiore.run.jahmm.io.ObservationWriter<O>
Direct Known Subclasses:
ObservationIntegerWriter, ObservationRealWriter, ObservationVectorWriter

public abstract class ObservationWriter<O extends Observation>
extends java.lang.Object

Writes an observation up to (and including) the semi-colon.

The syntax of each observation must be compatible with the corresponding ObservationReader.


Constructor Summary
ObservationWriter()
           
 
Method Summary
abstract  void write(O observation, java.io.Writer writer)
          Writes an Observation (followed by a semi-colon) using a Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservationWriter

public ObservationWriter()
Method Detail

write

public abstract void write(O observation,
                           java.io.Writer writer)
                    throws java.io.IOException
Writes an Observation (followed by a semi-colon) using a Writer.

Parameters:
observation - The observation to write.
writer - The writer used to write the observations.
Throws:
java.io.IOException


Copyright © 2004,2005 Jean-Marc François.