dsg.smart
Interface IntTimeseries

All Superinterfaces:
Timeseries

public interface IntTimeseries
extends Timeseries

Example of timeseries of a specific data type --- in this case, a timeseries implementing a stream of integers.


Method Summary
 int getDateIndex(java.util.Date date)
          Gets the index of the point closest to date
 int getNullValue()
          Value reported for missing datapoints.
 int getPoint(int n)
          Get the nth point
 int getPoints(int start, int n)
          Gets a bunch of points
 void setPoint(java.util.Date date, int value)
          Sets a value, for a timeseries in which delta=0
 void setPoint(int n, int value)
          Set the nth point, for a timeseries where delta > 0; this is used for appending, esp. if data points are skipped by accident.
 int setPoints(int start, int n, int[] values)
          Sets a bunch of values, for delta <> 0
 
Methods inherited from interface dsg.smart.Timeseries
getDate, getDelta, getFirst, getLast, getNumPoints, getSpec
 

Method Detail

getNullValue

public int getNullValue()
Value reported for missing datapoints.


setPoint

public void setPoint(int n,
                     int value)
Set the nth point, for a timeseries where delta > 0; this is used for appending, esp. if data points are skipped by accident.


getPoint

public int getPoint(int n)
Get the nth point


setPoint

public void setPoint(java.util.Date date,
                     int value)
Sets a value, for a timeseries in which delta=0


getPoints

public int getPoints(int start,
                     int n)
Gets a bunch of points


setPoints

public int setPoints(int start,
                     int n,
                     int[] values)
Sets a bunch of values, for delta <> 0


getDateIndex

public int getDateIndex(java.util.Date date)
Gets the index of the point closest to date