be.ac.ulg.montefiore.run.jahmm.io
Class OpdfWriter<O extends Opdf<?>>

java.lang.Object
  extended by be.ac.ulg.montefiore.run.jahmm.io.OpdfWriter<O>
Direct Known Subclasses:
OpdfGaussianMixtureWriter, OpdfGaussianWriter, OpdfIntegerWriter, OpdfMultiGaussianWriter

public abstract class OpdfWriter<O extends Opdf<?>>
extends java.lang.Object

Writes an observation distribution textual description.


Constructor Summary
OpdfWriter()
           
 
Method Summary
protected  void write(java.io.Writer writer, double[] array)
          Writes a sequence of numbers.
abstract  void write(java.io.Writer writer, O opdf)
          Writes a textual description of a given Opdf compatible with the corresponding OpdfReader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpdfWriter

public OpdfWriter()
Method Detail

write

public abstract void write(java.io.Writer writer,
                           O opdf)
                    throws java.io.IOException
Writes a textual description of a given Opdf compatible with the corresponding OpdfReader.

Parameters:
writer - The writer where the description is output.
opdf - An observation distribution.
Throws:
java.io.IOException

write

protected void write(java.io.Writer writer,
                     double[] array)
              throws java.io.IOException
Writes a sequence of numbers. This method is compatible with OpdfReader.read(StreamTokenizer, int).

Parameters:
writer - Where to read the sequence to.
array - The array to write.
Throws:
java.io.IOException


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