Class GermanVoltageLevelUtils

java.lang.Object
edu.ie3.datamodel.models.voltagelevels.GermanVoltageLevelUtils

public class GermanVoltageLevelUtils extends Object
  • Field Details

  • Method Details

    • getGermanVoltageLevels

      public static Set<CommonVoltageLevel> 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 a VoltageLevelException 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 a VoltageLevelException is thrown.
      Parameters:
      id - Identifier of the voltage level
      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