Package edu.ie3.datamodel.io.source
Interface TimeSeriesSource<V extends Value>
- All Superinterfaces:
DataSource
- All Known Implementing Classes:
CsvTimeSeriesSource
,SqlTimeSeriesSource
The interface definition of a source, that is able to provide one specific time series for one
model
-
Method Summary
Modifier and TypeMethodDescriptionObtain the full time seriesgetTimeSeries
(edu.ie3.util.interval.ClosedInterval<ZonedDateTime> timeInterval) Get the time series for the given time interval.getValue
(ZonedDateTime time) Get the time series value for a specific timestatic boolean
isSchemeAccepted
(ColumnScheme scheme) Deprecated, for removal: This API element is subject to removal in a future version.since 3.0.
-
Method Details
-
isSchemeAccepted
Deprecated, for removal: This API element is subject to removal in a future version.since 3.0. UseTimeSeriesUtils#isSchemeAccepted(edu.ie3.datamodel.io.naming.timeseries.ColumnScheme)
instead.Checks whether the given column scheme can be used with time series.- Parameters:
scheme
- the column scheme to check- Returns:
- whether the scheme is accepted or not
-
getTimeSeries
IndividualTimeSeries<V> getTimeSeries()Obtain the full time series- Returns:
- the time series
-
getTimeSeries
IndividualTimeSeries<V> getTimeSeries(edu.ie3.util.interval.ClosedInterval<ZonedDateTime> timeInterval) Get the time series for the given time interval. If the interval is bigger than the time series itself, only the parts of the time series within the interval are handed back.- Parameters:
timeInterval
- Desired time interval to cover- Returns:
- The parts of of interest of the time series
-
getValue
Get the time series value for a specific time- Parameters:
time
- The queried time- Returns:
- Option on a value for that time
-