Class Ticker

java.lang.Object
  |
  +--Ticker
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
AveragingTicker

public class Ticker
extends java.lang.Object
implements DataSource

A ticker implements a DataSource interface on top of a file containing floating point numbers.

See Also:
DataSource, DataSink

Constructor Summary
Ticker(java.lang.String filename)
          Sole constructor.
 
Method Summary
 int max()
          Gets the maximum ticker value.
 PointValue next()
          Fetches the next point value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ticker

public Ticker(java.lang.String filename)
Sole constructor. Prepares source ticks found in the specified file.

Parameters:
filename - source of the ticks.
Method Detail

next

public PointValue next()
Fetches the next point value

Specified by:
next in interface DataSource
Returns:
next, null if no more.

max

public int max()
Gets the maximum ticker value.

Specified by:
max in interface DataSource
Returns:
the maximum value expected from this source.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object