Package edu.ie3.datamodel.models.result
Class ResultEntity
java.lang.Object
edu.ie3.datamodel.models.UniqueEntity
edu.ie3.datamodel.models.result.ResultEntity
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConnectorResult
,FlexOptionsResult
,NodeResult
,SwitchResult
,SystemParticipantResult
,ThermalUnitResult
Abstract class to hold all mappings common to all result models
- 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
ResultEntity
(ZonedDateTime time, UUID inputModel) Standard constructor which includes auto generation of the resulting output models uuid.protected
ResultEntity
(UUID uuid, ZonedDateTime time, UUID inputModel) Standard constructor without uuid generation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getTime()
int
hashCode()
void
setInputModel
(UUID inputID) void
setTime
(ZonedDateTime time) toString()
Methods inherited from class edu.ie3.datamodel.models.UniqueEntity
getUuid
-
Constructor Details
-
ResultEntity
Standard constructor which includes auto generation of the resulting output models uuid.- Parameters:
time
- date and time when the result is producedinputModel
- uuid of the input model that produces the result
-
ResultEntity
Standard constructor without uuid generation.- Parameters:
uuid
- uuid of this result entity, for automatic uuid generation use primary constructor abovetime
- date and time when the result is producedinputModel
- uuid of the input model that produces the result
-
-
Method Details
-
getInputModel
-
setInputModel
-
getTime
-
setTime
-
equals
- Overrides:
equals
in classUniqueEntity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classUniqueEntity
-
toString
- Overrides:
toString
in classUniqueEntity
-