Class IndividualTimeSeries<V extends Value>
java.lang.Object
edu.ie3.datamodel.models.UniqueEntity
edu.ie3.datamodel.models.timeseries.TimeSeries<TimeBasedValue<V>,V>
edu.ie3.datamodel.models.timeseries.individual.IndividualTimeSeries<V>
- All Implemented Interfaces:
Serializable
Describes a TimeSeries with individual values per time step
- 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the sorted set of all entries known to this time seriesprotected Optional<ZonedDateTime>
getNextDateTime
(ZonedDateTime time) Get the next later known time instantprotected Optional<ZonedDateTime>
Get the next earlier known time instantGet the time based value for the queried timegetValue
(ZonedDateTime time) If you prefer to keep the time with the value, please useTimeSeries.getTimeBasedValue(java.time.ZonedDateTime)
insteadint
hashCode()
toString()
Methods inherited from class edu.ie3.datamodel.models.timeseries.TimeSeries
getNextTimeBasedValue, getPreviousTimeBasedValue
Methods inherited from class edu.ie3.datamodel.models.UniqueEntity
getUuid
-
Constructor Details
-
IndividualTimeSeries
-
-
Method Details
-
getEntries
Returns the sorted set of all entries known to this time series- Overrides:
getEntries
in classTimeSeries<TimeBasedValue<V extends Value>,
V extends Value> - Returns:
- An unmodifiable sorted set of all known time based values of this time series
-
getTimeBasedValue
Description copied from class:TimeSeries
Get the time based value for the queried time- Overrides:
getTimeBasedValue
in classTimeSeries<TimeBasedValue<V extends Value>,
V extends Value> - Parameters:
time
- Reference in time- Returns:
- the value at the given time step as a TimeBasedValue
-
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<TimeBasedValue<V extends Value>,
V extends Value> - Parameters:
time
- Queried time- Returns:
- An option on the raw value at the given time step
-
getPreviousDateTime
Description copied from class:TimeSeries
Get the next earlier known time instant- Specified by:
getPreviousDateTime
in classTimeSeries<TimeBasedValue<V extends Value>,
V extends Value> - Parameters:
time
- Reference in time- Returns:
- The next earlier known time instant
-
getNextDateTime
Description copied from class:TimeSeries
Get the next later known time instant- Specified by:
getNextDateTime
in classTimeSeries<TimeBasedValue<V extends Value>,
V extends Value> - Parameters:
time
- Reference in time- Returns:
- The next later known time instant
-
equals
- Overrides:
equals
in classTimeSeries<TimeBasedValue<V extends Value>,
V extends Value>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTimeSeries<TimeBasedValue<V extends Value>,
V extends Value>
-
toString
- Overrides:
toString
in classTimeSeries<TimeBasedValue<V extends Value>,
V extends Value>
-