Class TimeSeries<E extends TimeSeriesEntry<V>,V extends Value>
java.lang.Object
edu.ie3.datamodel.models.UniqueEntity
edu.ie3.datamodel.models.timeseries.TimeSeries<E,V>
- Type Parameters:
E
- Type of the entries, the time series is foreseen to containV
- Type of the values, the entries will have
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IndividualTimeSeries
,RepetitiveTimeSeries
Describes a Series of
values
- 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
TimeSeries
(Set<E> entries) protected
TimeSeries
(UUID uuid, Set<E> entries) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns all unique entriesprotected abstract Optional<ZonedDateTime>
getNextDateTime
(ZonedDateTime time) Get the next later known time instantGet the next available value after or at the given time step as a TimeBasedValueprotected abstract Optional<ZonedDateTime>
Get the next earlier known time instantGet the most recent available value before or at the given time step as a TimeBasedValueGet the time based value for the queried timegetValue
(ZonedDateTime time) If you prefer to keep the time with the value, please usegetTimeBasedValue(java.time.ZonedDateTime)
insteadint
hashCode()
toString()
Methods inherited from class edu.ie3.datamodel.models.UniqueEntity
getUuid
-
Constructor Details
-
TimeSeries
-
TimeSeries
-
-
Method Details
-
getTimeBasedValue
Get the time based value for the queried time- Parameters:
time
- Reference in time- Returns:
- the value at the given time step as a TimeBasedValue
-
getValue
If you prefer to keep the time with the value, please usegetTimeBasedValue(java.time.ZonedDateTime)
instead- Parameters:
time
- Queried time- Returns:
- An option on the raw value at the given time step
-
getPreviousDateTime
Get the next earlier known time instant- Parameters:
time
- Reference in time- Returns:
- The next earlier known time instant
-
getNextDateTime
Get the next later known time instant- Parameters:
time
- Reference in time- Returns:
- The next later known time instant
-
getPreviousTimeBasedValue
Get the most recent available value before or at the given time step as a TimeBasedValue- Parameters:
time
- Reference in time- Returns:
- the most recent available value before or at the given time step as a TimeBasedValue
-
getNextTimeBasedValue
Get the next available value after or at the given time step as a TimeBasedValue- Parameters:
time
- Reference in time- Returns:
- the next available value after or at the given time step as a TimeBasedValue
-
getEntries
Returns all unique entries- Returns:
- all unique entries
-
equals
- Overrides:
equals
in classUniqueEntity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classUniqueEntity
-
toString
- Overrides:
toString
in classUniqueEntity
-