Package com.powsybl.ucte.network
Enum UcteVoltageLevelCode
- java.lang.Object
-
- java.lang.Enum<UcteVoltageLevelCode>
-
- com.powsybl.ucte.network.UcteVoltageLevelCode
-
- All Implemented Interfaces:
Serializable
,Comparable<UcteVoltageLevelCode>
public enum UcteVoltageLevelCode extends Enum<UcteVoltageLevelCode>
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getVoltageLevel()
Gets the voltage level (kV).static boolean
isVoltageLevelCode(char character)
static UcteVoltageLevelCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static UcteVoltageLevelCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static UcteVoltageLevelCode
voltageLevelCodeFromChar(char code)
-
-
-
Enum Constant Detail
-
VL_750
public static final UcteVoltageLevelCode VL_750
0 750kV.
-
VL_380
public static final UcteVoltageLevelCode VL_380
1 380kV.
-
VL_220
public static final UcteVoltageLevelCode VL_220
2 220kV.
-
VL_150
public static final UcteVoltageLevelCode VL_150
3 150kV.
-
VL_120
public static final UcteVoltageLevelCode VL_120
4 120kV.
-
VL_110
public static final UcteVoltageLevelCode VL_110
5 110kV.
-
VL_70
public static final UcteVoltageLevelCode VL_70
6 70kV.
-
VL_27
public static final UcteVoltageLevelCode VL_27
7 27kV.
-
VL_330
public static final UcteVoltageLevelCode VL_330
8 330kV.
-
VL_500
public static final UcteVoltageLevelCode VL_500
9 500kV.
-
-
Method Detail
-
values
public static UcteVoltageLevelCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UcteVoltageLevelCode c : UcteVoltageLevelCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UcteVoltageLevelCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
voltageLevelCodeFromChar
public static UcteVoltageLevelCode voltageLevelCodeFromChar(char code)
-
isVoltageLevelCode
public static boolean isVoltageLevelCode(char character)
-
getVoltageLevel
public int getVoltageLevel()
Gets the voltage level (kV).- Returns:
- the voltage level (kV)
-
-