Class CommonVoltageLevel
java.lang.Object
edu.ie3.datamodel.models.voltagelevels.VoltageLevel
edu.ie3.datamodel.models.voltagelevels.CommonVoltageLevel
- All Implemented Interfaces:
Serializable
Class with extended information to describe common voltage levels in energy systems.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final edu.ie3.util.interval.RightOpenInterval<tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential>>
Fields inherited from class edu.ie3.datamodel.models.voltagelevels.VoltageLevel
id, nominalVoltage
-
Constructor Summary
ConstructorDescriptionCommonVoltageLevel
(String id, tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> nominalVoltage, Set<String> synonymousIds, edu.ie3.util.interval.RightOpenInterval<tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential>> voltageRange) Constructs a concrete voltage level -
Method Summary
Modifier and TypeMethodDescriptionboolean
covers
(String id, tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> vRated) Checks, whether the given tuple of identifier and rated voltage is coveredboolean
covers
(tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> vRated) Checks, whether the given rated voltage is coveredtoString()
Methods inherited from class edu.ie3.datamodel.models.voltagelevels.VoltageLevel
getId, getNominalVoltage
-
Field Details
-
voltageRange
protected final edu.ie3.util.interval.RightOpenInterval<tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential>> voltageRange
-
-
Constructor Details
-
CommonVoltageLevel
public CommonVoltageLevel(String id, tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> nominalVoltage, Set<String> synonymousIds, edu.ie3.util.interval.RightOpenInterval<tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential>> voltageRange) Constructs a concrete voltage level- Parameters:
id
- IdentifiernominalVoltage
- nominal voltage of the voltage levelsynonymousIds
- Synonymously used identifiersvoltageRange
- Range of nominal voltage that is covered by this common voltage level
-
-
Method Details
-
covers
public boolean covers(tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> vRated) Checks, whether the given rated voltage is covered- Parameters:
vRated
- Rated voltage of a node to test- Returns:
- true, if it is covered
-
covers
public boolean covers(String id, tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> vRated) throws VoltageLevelException Checks, whether the given tuple of identifier and rated voltage is covered- Parameters:
id
- IdentifiervRated
- Rated voltage of a node to test- Returns:
- true, if it is covered
- Throws:
VoltageLevelException
- If the input is ambiguous
-
toString
- Overrides:
toString
in classVoltageLevel
-