be.ac.ulg.montefiore.run.jahmm.io
Class ObservationRealReader

java.lang.Object
  extended by be.ac.ulg.montefiore.run.jahmm.io.ObservationReader<ObservationReal>
      extended by be.ac.ulg.montefiore.run.jahmm.io.ObservationRealReader

public class ObservationRealReader
extends ObservationReader<ObservationReal>

Reads an ObservationReal up to (and including) a semi-colon.

The format of this observation is a simple real number (following the format [+-]?[0123456789]+[.]?[0123456789]*, e.g. 12.3).

For example, reading

76.3;
creates an observation such as the one generated by new ObservationReal(76.3);


Constructor Summary
ObservationRealReader()
           
 
Method Summary
 ObservationReal read(java.io.StreamTokenizer st)
          Reads an ObservationReal reader, as explained in ObservationReader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservationRealReader

public ObservationRealReader()
Method Detail

read

public ObservationReal read(java.io.StreamTokenizer st)
                     throws java.io.IOException,
                            FileFormatException
Reads an ObservationReal reader, as explained in ObservationReader.

Specified by:
read in class ObservationReader<ObservationReal>
Parameters:
st - A stream tokenizer.
Returns:
The ObservationReal read.
Throws:
java.io.IOException
FileFormatException


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