Package edu.ie3.datamodel.models.input
Class NodeInput
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.NodeInput
- All Implemented Interfaces:
NestedEntity
,Operable
,Serializable
Describes an electrical grid node, that other assets can connect to
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder pattern based approach to create copies ofNodeInput
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
Modifier and TypeFieldDescriptionstatic final org.locationtech.jts.geom.Point
Use this default value if geoPosition is unknownFields inherited from class edu.ie3.datamodel.models.UniqueEntity
UUID_FIELD_NAME
-
Constructor Summary
ConstructorDescriptionNodeInput
(UUID uuid, String id, OperatorInput operator, OperationTime operationTime, tech.units.indriya.ComparableQuantity<javax.measure.quantity.Dimensionless> vTarget, boolean slack, org.locationtech.jts.geom.Point geoPosition, VoltageLevel voltLvl, int subnet) Constructor for an operated nodeNodeInput
(UUID uuid, String id, tech.units.indriya.ComparableQuantity<javax.measure.quantity.Dimensionless> vTarget, boolean slack, org.locationtech.jts.geom.Point geoPosition, VoltageLevel voltLvl, int subnet) Constructor for an operated, always on asset -
Method Summary
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
-
Field Details
-
DEFAULT_GEO_POSITION
public static final org.locationtech.jts.geom.Point DEFAULT_GEO_POSITIONUse this default value if geoPosition is unknown
-
-
Constructor Details
-
NodeInput
public NodeInput(UUID uuid, String id, OperatorInput operator, OperationTime operationTime, tech.units.indriya.ComparableQuantity<javax.measure.quantity.Dimensionless> vTarget, boolean slack, org.locationtech.jts.geom.Point geoPosition, VoltageLevel voltLvl, int subnet) Constructor for an operated node- Parameters:
uuid
- of the input entityid
- of the assetoperator
- of the assetoperationTime
- Time for which the entity is operatedvTarget
- Target voltage magnitude of the node with regard to its rated voltageslack
- Is this node a slack node?geoPosition
- Coordinates of this node, especially relevant for geo-dependant systems, that are connected to this nodevoltLvl
- Voltage level of this nodesubnet
- of this node
-
NodeInput
public NodeInput(UUID uuid, String id, tech.units.indriya.ComparableQuantity<javax.measure.quantity.Dimensionless> vTarget, boolean slack, org.locationtech.jts.geom.Point geoPosition, VoltageLevel voltLvl, int subnet) Constructor for an operated, always on asset- Parameters:
uuid
- of the input entityid
- of the assetvTarget
- Target voltage magnitude of the node with regard to its rated voltageslack
- Is this node a slack node?geoPosition
- Coordinates of this node, especially relevant for geo-dependant systems, that are connected to this nodevoltLvl
- Voltage level of this nodesubnet
- of this node
-
-
Method Details
-
getvTarget
public tech.units.indriya.ComparableQuantity<javax.measure.quantity.Dimensionless> getvTarget() -
isSlack
public boolean isSlack() -
getGeoPosition
public org.locationtech.jts.geom.Point getGeoPosition() -
getVoltLvl
-
getSubnet
public int getSubnet() -
copy
- Specified by:
copy
in classAssetInput
-
equals
- Overrides:
equals
in classAssetInput
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAssetInput
-
toString
- Overrides:
toString
in classAssetInput
-