Class SwitchResult
java.lang.Object
edu.ie3.datamodel.models.UniqueEntity
edu.ie3.datamodel.models.result.ResultEntity
edu.ie3.datamodel.models.result.connector.SwitchResult
- All Implemented Interfaces:
Serializable
Represents calculation results of a
SwitchInput
- 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
ConstructorDescriptionSwitchResult
(ZonedDateTime time, UUID inputModel, boolean closed) Standard constructor with automatic uuid generation.SwitchResult
(UUID uuid, ZonedDateTime time, UUID inputModel, boolean closed) Standard constructor which allows uuid provision -
Method Summary
Methods inherited from class edu.ie3.datamodel.models.result.ResultEntity
getInputModel, getTime, setInputModel, setTime
Methods inherited from class edu.ie3.datamodel.models.UniqueEntity
getUuid
-
Constructor Details
-
SwitchResult
Standard constructor with automatic uuid generation.- Parameters:
time
- date and time when the result is producedinputModel
- uuid of the input model that produces the resultclosed
- true if switch is closed, false if switch is open
-
SwitchResult
Standard constructor which allows uuid provision- 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 resultclosed
- true if switch is closed, false if switch is open
-
-
Method Details
-
getClosed
public boolean getClosed() -
setClosed
public void setClosed(boolean closed) -
equals
- Overrides:
equals
in classResultEntity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classResultEntity
-
toString
- Overrides:
toString
in classResultEntity
-