Package com.powsybl.timeseries
Class ReadOnlyTimeSeriesStoreCache
- java.lang.Object
-
- com.powsybl.timeseries.ReadOnlyTimeSeriesStoreCache
-
- All Implemented Interfaces:
ReadOnlyTimeSeriesStore
public class ReadOnlyTimeSeriesStoreCache extends Object implements ReadOnlyTimeSeriesStore
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyTimeSeriesStoreCache(DoubleTimeSeries... doubleTimeSeriesList)
ReadOnlyTimeSeriesStoreCache(List<DoubleTimeSeries> doubleTimeSeriesList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(TimeSeriesStoreListener listener)
List<DoubleTimeSeries>
getDoubleTimeSeries(int version)
Optional<DoubleTimeSeries>
getDoubleTimeSeries(String timeSeriesName, int version)
List<DoubleTimeSeries>
getDoubleTimeSeries(Set<String> timeSeriesNames, int version)
Optional<StringTimeSeries>
getStringTimeSeries(String timeSeriesName, int version)
List<StringTimeSeries>
getStringTimeSeries(Set<String> timeSeriesNames, int version)
Set<Integer>
getTimeSeriesDataVersions()
Set<Integer>
getTimeSeriesDataVersions(String timeSeriesName)
Optional<TimeSeriesMetadata>
getTimeSeriesMetadata(String timeSeriesName)
List<TimeSeriesMetadata>
getTimeSeriesMetadata(Set<String> timeSeriesNames)
Set<String>
getTimeSeriesNames(TimeSeriesFilter filter)
void
removeListener(TimeSeriesStoreListener listener)
boolean
timeSeriesExists(String timeSeriesName)
-
-
-
Constructor Detail
-
ReadOnlyTimeSeriesStoreCache
public ReadOnlyTimeSeriesStoreCache(DoubleTimeSeries... doubleTimeSeriesList)
-
ReadOnlyTimeSeriesStoreCache
public ReadOnlyTimeSeriesStoreCache(List<DoubleTimeSeries> doubleTimeSeriesList)
-
-
Method Detail
-
getTimeSeriesNames
public Set<String> getTimeSeriesNames(TimeSeriesFilter filter)
- Specified by:
getTimeSeriesNames
in interfaceReadOnlyTimeSeriesStore
-
timeSeriesExists
public boolean timeSeriesExists(String timeSeriesName)
- Specified by:
timeSeriesExists
in interfaceReadOnlyTimeSeriesStore
-
getTimeSeriesMetadata
public Optional<TimeSeriesMetadata> getTimeSeriesMetadata(String timeSeriesName)
- Specified by:
getTimeSeriesMetadata
in interfaceReadOnlyTimeSeriesStore
-
getTimeSeriesMetadata
public List<TimeSeriesMetadata> getTimeSeriesMetadata(Set<String> timeSeriesNames)
- Specified by:
getTimeSeriesMetadata
in interfaceReadOnlyTimeSeriesStore
-
getTimeSeriesDataVersions
public Set<Integer> getTimeSeriesDataVersions()
- Specified by:
getTimeSeriesDataVersions
in interfaceReadOnlyTimeSeriesStore
-
getTimeSeriesDataVersions
public Set<Integer> getTimeSeriesDataVersions(String timeSeriesName)
- Specified by:
getTimeSeriesDataVersions
in interfaceReadOnlyTimeSeriesStore
-
getDoubleTimeSeries
public Optional<DoubleTimeSeries> getDoubleTimeSeries(String timeSeriesName, int version)
- Specified by:
getDoubleTimeSeries
in interfaceReadOnlyTimeSeriesStore
-
getDoubleTimeSeries
public List<DoubleTimeSeries> getDoubleTimeSeries(Set<String> timeSeriesNames, int version)
- Specified by:
getDoubleTimeSeries
in interfaceReadOnlyTimeSeriesStore
-
getDoubleTimeSeries
public List<DoubleTimeSeries> getDoubleTimeSeries(int version)
- Specified by:
getDoubleTimeSeries
in interfaceReadOnlyTimeSeriesStore
-
getStringTimeSeries
public Optional<StringTimeSeries> getStringTimeSeries(String timeSeriesName, int version)
- Specified by:
getStringTimeSeries
in interfaceReadOnlyTimeSeriesStore
-
getStringTimeSeries
public List<StringTimeSeries> getStringTimeSeries(Set<String> timeSeriesNames, int version)
- Specified by:
getStringTimeSeries
in interfaceReadOnlyTimeSeriesStore
-
addListener
public void addListener(TimeSeriesStoreListener listener)
- Specified by:
addListener
in interfaceReadOnlyTimeSeriesStore
-
removeListener
public void removeListener(TimeSeriesStoreListener listener)
- Specified by:
removeListener
in interfaceReadOnlyTimeSeriesStore
-
-