ALLINPUT - The collection input typeSINGLEINPUT - The type of a single time point dataINTERNALSERIES - The type of the internal series held in this collectionTIMESERIES - public abstract class SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>,INTERNALSERIES extends TimeSeries<ALLINPUT,SINGLEINPUT,INTERNALSERIES>> extends TimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>
timeSeriesHolder| Constructor and Description |
|---|
SynchronisedTimeSeriesCollection()
initialise the underlying time series holder
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTimeSeries(String name,
INTERNALSERIES series) |
Collection<INTERNALSERIES> |
allseries() |
abstract ALLINPUT |
flatten()
In some way flatten the held time series such that the output is:
|
Map<String,ALLINPUT> |
getData() |
long[] |
getTimes() |
void |
internalAssign(TIMESERIES interpolate) |
INTERNALSERIES |
series(String name) |
void |
set(long[] time,
Map<String,ALLINPUT> data)
Set the data associated with each time.
|
int |
size() |
String |
toString() |
collectionByNames, collectionByNames, convertInternal, convertInternal, get, get, get, get, getNames, internalNewInstance, iterator, nSeries, processInternal, processInternalInplaceconvert, convert, copy, get, internalAssign, newInstance, process, processInplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SynchronisedTimeSeriesCollection()
public void addTimeSeries(String name, INTERNALSERIES series) throws IncompatibleTimeSeriesException
addTimeSeries in class TimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>,INTERNALSERIES extends TimeSeries<ALLINPUT,SINGLEINPUT,INTERNALSERIES>>IncompatibleTimeSeriesExceptionpublic INTERNALSERIES series(String name)
series in class TimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>,INTERNALSERIES extends TimeSeries<ALLINPUT,SINGLEINPUT,INTERNALSERIES>>name - the name of the seriespublic Collection<INTERNALSERIES> allseries()
allseries in class TimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>,INTERNALSERIES extends TimeSeries<ALLINPUT,SINGLEINPUT,INTERNALSERIES>>public long[] getTimes()
getTimes in class TimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>,INTERNALSERIES extends TimeSeries<ALLINPUT,SINGLEINPUT,INTERNALSERIES>>public void set(long[] time, Map<String,ALLINPUT> data) throws TimeSeriesSetException
TimeSeriesset in class TimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>,INTERNALSERIES extends TimeSeries<ALLINPUT,SINGLEINPUT,INTERNALSERIES>>time - instances of timedata - instances of dataTimeSeriesSetExceptionpublic Map<String,ALLINPUT> getData()
getData in class TimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>,INTERNALSERIES extends TimeSeries<ALLINPUT,SINGLEINPUT,INTERNALSERIES>>public int size()
size in class TimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>,INTERNALSERIES extends TimeSeries<ALLINPUT,SINGLEINPUT,INTERNALSERIES>>public void internalAssign(TIMESERIES interpolate)
internalAssign in class TimeSeries<Map<String,ALLINPUT>,Map<String,SINGLEINPUT>,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>>interpolate - assign this timeseries to the internal one, efforts should be
made to copy the data, not simply assign itpublic String toString()
toString in class TimeSeries<Map<String,ALLINPUT>,Map<String,SINGLEINPUT>,TIMESERIES extends SynchronisedTimeSeriesCollection<ALLINPUT,SINGLEINPUT,TIMESERIES,INTERNALSERIES>>