Class RepetitiveTimeSeries<E extends TimeSeriesEntry<V>,V extends Value>
java.lang.Object
edu.ie3.datamodel.models.UniqueEntity
edu.ie3.datamodel.models.timeseries.TimeSeries<E,V>
edu.ie3.datamodel.models.timeseries.repetitive.RepetitiveTimeSeries<E,V>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LoadProfileInput
public abstract class RepetitiveTimeSeries<E extends TimeSeriesEntry<V>,V extends Value>
extends TimeSeries<E,V>
Describes a TimeSeries with repetitive values that can be calculated from a pattern
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.ie3.datamodel.models.UniqueEntity
UniqueEntity.UniqueEntityBuilder, UniqueEntity.UniqueEntityCopyBuilder<T extends UniqueEntity.UniqueEntityBuilder>
-
Field Summary
Fields inherited from class edu.ie3.datamodel.models.UniqueEntity
UUID_FIELD_NAME
-
Constructor Summary
ModifierConstructorDescriptionprotected
RepetitiveTimeSeries
(Set<E> entries) protected
RepetitiveTimeSeries
(UUID uuid, Set<E> entries) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract V
calc
(ZonedDateTime time) Calculate the value at the given time step based on a patterngetValue
(ZonedDateTime time) If you prefer to keep the time with the value, please useTimeSeries.getTimeBasedValue(java.time.ZonedDateTime)
insteadMethods inherited from class edu.ie3.datamodel.models.timeseries.TimeSeries
equals, getEntries, getNextDateTime, getNextTimeBasedValue, getPreviousDateTime, getPreviousTimeBasedValue, getTimeBasedValue, hashCode, toString
Methods inherited from class edu.ie3.datamodel.models.UniqueEntity
getUuid
-
Constructor Details
-
RepetitiveTimeSeries
-
RepetitiveTimeSeries
-
-
Method Details
-
calc
Calculate the value at the given time step based on a pattern- Parameters:
time
- Questioned time- Returns:
- The value for the queried time
-
getValue
Description copied from class:TimeSeries
If you prefer to keep the time with the value, please useTimeSeries.getTimeBasedValue(java.time.ZonedDateTime)
instead- Specified by:
getValue
in classTimeSeries<E extends TimeSeriesEntry<V>,
V extends Value> - Parameters:
time
- Queried time- Returns:
- An option on the raw value at the given time step
-