Package com.powsybl.contingency
Enum ContingencyElementType
- java.lang.Object
-
- java.lang.Enum<ContingencyElementType>
-
- com.powsybl.contingency.ContingencyElementType
-
- All Implemented Interfaces:
Serializable
,Comparable<ContingencyElementType>
public enum ContingencyElementType extends Enum<ContingencyElementType>
- Author:
- Geoffroy Jamgotchian
, Teofil Calin BANC
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BATTERY
BRANCH
BUS
BUSBAR_SECTION
DANGLING_LINE
GENERATOR
HVDC_LINE
LINE
LOAD
SHUNT_COMPENSATOR
STATIC_VAR_COMPENSATOR
SWITCH
THREE_WINDINGS_TRANSFORMER
TWO_WINDINGS_TRANSFORMER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContingencyElementType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContingencyElementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERATOR
public static final ContingencyElementType GENERATOR
-
STATIC_VAR_COMPENSATOR
public static final ContingencyElementType STATIC_VAR_COMPENSATOR
-
SHUNT_COMPENSATOR
public static final ContingencyElementType SHUNT_COMPENSATOR
-
BRANCH
public static final ContingencyElementType BRANCH
-
HVDC_LINE
public static final ContingencyElementType HVDC_LINE
-
BUSBAR_SECTION
public static final ContingencyElementType BUSBAR_SECTION
-
DANGLING_LINE
public static final ContingencyElementType DANGLING_LINE
-
LINE
public static final ContingencyElementType LINE
-
TWO_WINDINGS_TRANSFORMER
public static final ContingencyElementType TWO_WINDINGS_TRANSFORMER
-
THREE_WINDINGS_TRANSFORMER
public static final ContingencyElementType THREE_WINDINGS_TRANSFORMER
-
LOAD
public static final ContingencyElementType LOAD
-
SWITCH
public static final ContingencyElementType SWITCH
-
BATTERY
public static final ContingencyElementType BATTERY
-
BUS
public static final ContingencyElementType BUS
-
-
Method Detail
-
values
public static ContingencyElementType[] 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 (ContingencyElementType c : ContingencyElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContingencyElementType 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
-
-