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
ConstructorsConstructorDescriptionSwitchResult(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, setTimeMethods 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:
equalsin classResultEntity
-
hashCode
public int hashCode()- Overrides:
hashCodein classResultEntity
-
toString
- Overrides:
toStringin classResultEntity
-