Class SwitchInput
java.lang.Object
edu.ie3.datamodel.models.UniqueEntity
edu.ie3.datamodel.models.input.InputEntity
edu.ie3.datamodel.models.input.AssetInput
edu.ie3.datamodel.models.input.connector.ConnectorInput
edu.ie3.datamodel.models.input.connector.SwitchInput
- All Implemented Interfaces:
HasNodes
,NestedEntity
,Operable
,Serializable
Describes an electrical grid switch between two
NodeInput
s- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder pattern based approach to create copies ofLineInput
entities with altered field values.Nested classes/interfaces inherited from class edu.ie3.datamodel.models.input.AssetInput
AssetInput.AssetInputCopyBuilder<T extends AssetInput.AssetInputCopyBuilder<T>>
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
ConstructorDescriptionSwitchInput
(UUID uuid, String id, NodeInput nodeA, NodeInput nodeB, boolean closed) Constructor for an operated, always on switchSwitchInput
(UUID uuid, String id, OperatorInput operator, OperationTime operationTime, NodeInput nodeA, NodeInput nodeB, boolean closed) Constructor for an operated switch -
Method Summary
Methods inherited from class edu.ie3.datamodel.models.input.connector.ConnectorInput
allNodes, getNodeA, getNodeB, getParallelDevices
Methods inherited from class edu.ie3.datamodel.models.input.AssetInput
getId, getOperationTime, getOperator
Methods inherited from class edu.ie3.datamodel.models.UniqueEntity
getUuid
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.ie3.datamodel.models.Operable
inOperationOn
-
Constructor Details
-
SwitchInput
public SwitchInput(UUID uuid, String id, OperatorInput operator, OperationTime operationTime, NodeInput nodeA, NodeInput nodeB, boolean closed) Constructor for an operated switch- Parameters:
uuid
- of the input entityid
- of the assetoperator
- of the assetoperationTime
- Time for which the entity is operatednodeA
- Grid node at one side of the switchnodeB
- Grid node at the other side of the switchclosed
- Is the switching state 'closed'?
-
SwitchInput
Constructor for an operated, always on switch- Parameters:
uuid
- of the input entityid
- of the assetnodeA
- Grid node at one side of the switchnodeB
- Grid node at the other side of the switchclosed
- Is the switching state 'closed'?
-
-
Method Details
-
isClosed
public boolean isClosed() -
copy
- Specified by:
copy
in classConnectorInput
-
equals
- Overrides:
equals
in classConnectorInput
-
hashCode
public int hashCode()- Overrides:
hashCode
in classConnectorInput
-
toString
- Overrides:
toString
in classConnectorInput
-