Interface DataSink

All Known Implementing Classes:
TimeSeriesGraph

public interface DataSink

A DataSink provides a mechanism that allows PointValue producers and PointValue consumers to communicate. Implementors of this interface process points as they are produced.

See Also:
PointValue

Method Summary
 void addPoint(PointValue p)
          Drops a new point into the sink.
 void setMax(int v)
          Establishes maximum expected value for points coming down this sink.
 

Method Detail

addPoint

public void addPoint(PointValue p)
Drops a new point into the sink.

Parameters:
p - the point.

setMax

public void setMax(int v)
Establishes maximum expected value for points coming down this sink. Useful for scaling purposes.

Parameters:
v - the maximum value