Class GermanVoltageLevelUtils
java.lang.Object
edu.ie3.datamodel.models.voltagelevels.GermanVoltageLevelUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CommonVoltageLevel
static final CommonVoltageLevel
static final CommonVoltageLevel
protected static final org.slf4j.Logger
static final CommonVoltageLevel
static final CommonVoltageLevel
static final CommonVoltageLevel
static final CommonVoltageLevel
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<CommonVoltageLevel>
static CommonVoltageLevel
parse
(String id, tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> vRated) Parses the given id and rated voltage and returns a suitable german voltage level, unless it is not covered by any of the given.static CommonVoltageLevel
parse
(tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> vRated) Parses the given rated voltage and returns a suitable german voltage level, unless it is not covered by any of the given.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
LV
-
MV_10KV
-
MV_20KV
-
MV_30KV
-
HV
-
EHV_220KV
-
EHV_380KV
-
-
Method Details
-
getGermanVoltageLevels
-
parse
public static CommonVoltageLevel parse(tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> vRated) throws VoltageLevelException Parses the given rated voltage and returns a suitable german voltage level, unless it is not covered by any of the given. Then aVoltageLevelException
is thrown.- Parameters:
vRated
- Rated voltage to examine- Returns:
- A suitable voltage level
- Throws:
VoltageLevelException
- If the given rated voltage is not covered by any of the known voltage levels
-
parse
public static CommonVoltageLevel parse(String id, tech.units.indriya.ComparableQuantity<javax.measure.quantity.ElectricPotential> vRated) throws VoltageLevelException Parses the given id and rated voltage and returns a suitable german voltage level, unless it is not covered by any of the given. Then aVoltageLevelException
is thrown.- Parameters:
id
- Identifier of the voltage levelvRated
- Rated voltage to examine- Returns:
- A suitable voltage level
- Throws:
VoltageLevelException
- If the given rated voltage is not covered by any of the known voltage levels
-