multigraph
Class HttpTimeSeriesDataSource
java.lang.Object
multigraph.TimeSeriesDataSource
multigraph.HttpTimeSeriesDataSource
- public class HttpTimeSeriesDataSource
- extends TimeSeriesDataSource
Method Summary |
TimeSeriesDataSource.Iterator |
begin(java.util.Date d0)
Return an iterator which will step through the time points
for which we have data loaded, starting with the first time
point at or after Date d0. |
boolean |
dataLoadNeeded(java.util.Date new_d0,
java.util.Date new_d1)
Tell whether or not a call to loadData() would be
needed in order to load all the data between two
given dates. |
void |
dump()
|
PMFDatum[] |
getData(java.util.Date date)
Return the data associated with a given time. |
TimeSeriesDataSource.POR |
getPOR()
|
boolean |
loadData(java.util.Date new_d0,
java.util.Date new_d1)
Load data between dates d0 and d1, inclusive, if it has not previously
been loaded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpTimeSeriesDataSource
public HttpTimeSeriesDataSource(java.lang.String dataURL,
TimeSeriesMFFunction[] functions,
int[] station_ids)
dump
public void dump()
loadData
public boolean loadData(java.util.Date new_d0,
java.util.Date new_d1)
- Load data between dates d0 and d1, inclusive, if it has not previously
been loaded. Returns true if this involves actually loading any data.
Returns false if no data was loaded.
- Specified by:
loadData
in class TimeSeriesDataSource
dataLoadNeeded
public boolean dataLoadNeeded(java.util.Date new_d0,
java.util.Date new_d1)
- Tell whether or not a call to loadData() would be
needed in order to load all the data between two
given dates. Return true if so. Returns false
if all the data between the given dates has already
been loaded.
- Specified by:
dataLoadNeeded
in class TimeSeriesDataSource
getData
public PMFDatum[] getData(java.util.Date date)
- Return the data associated with a given time.
- Specified by:
getData
in class TimeSeriesDataSource
getPOR
public TimeSeriesDataSource.POR getPOR()
- Specified by:
getPOR
in class TimeSeriesDataSource
begin
public TimeSeriesDataSource.Iterator begin(java.util.Date d0)
- Return an iterator which will step through the time points
for which we have data loaded, starting with the first time
point at or after Date d0.
- Specified by:
begin
in class TimeSeriesDataSource