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

java.lang.Object
  extended by be.ac.ulg.montefiore.run.jahmm.io.ObservationReader<O>
Direct Known Subclasses:
ObservationIntegerReader, ObservationRealReader, ObservationVectorReader

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

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

The syntax of each observation must follow the rules given in ObservationSequencesReader (e.g. the backslash character is only used to escape a new line and can't appear in an observation).


Constructor Summary
ObservationReader()
           
 
Method Summary
abstract  O read(java.io.StreamTokenizer st)
          Reads an Observation (followed by a semi-colon) out of a StreamTokenizer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservationReader

public ObservationReader()
Method Detail

read

public abstract O read(java.io.StreamTokenizer st)
                                    throws java.io.IOException,
                                           FileFormatException
Reads an Observation (followed by a semi-colon) out of a StreamTokenizer.

The stream tokenizer syntax table must be set according to of ObservationSequencesReader.initSyntaxTable(StreamTokenizer) before the call to this method and reset to this state when it returns.

Parameters:
st - A stream tokenizer.
Returns:
An ObservationInteger.
Throws:
java.io.IOException
FileFormatException


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