|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public int getNullValue()
public void setPoint(int n, int value)
public int getPoint(int n)
public void setPoint(java.util.Date date, int value)
public int getPoints(int start, int n)
public int setPoints(int start, int n, int[] values)
public int getDateIndex(java.util.Date date)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |