Package com.powsybl.contingency
Enum Class ContingencyContextType
- All Implemented Interfaces:
Serializable
,Comparable<ContingencyContextType>
,Constable
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>, Etienne Lesot <etienne.lesot at rte-france.com> Define for a contingencyContext the type of information asked. It can be a pre-contingency state, a post-contingency state (on a specific contingency (SPECIFIC) or on every contingency (ONLY_CONTINGENCIES)) or both (ALL)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCorresponds to all contingencies and pre-contingency situationCorresponds to pre-contingency situationCorresponds to all contingencies (without the pre-contingency situation)Corresponds to one contingency whose id is specified in the contingencyContext -
Method Summary
Modifier and TypeMethodDescriptionstatic ContingencyContextType
Returns the enum constant of this class with the specified name.static ContingencyContextType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Corresponds to all contingencies and pre-contingency situation -
NONE
Corresponds to pre-contingency situation -
SPECIFIC
Corresponds to one contingency whose id is specified in the contingencyContext -
ONLY_CONTINGENCIES
Corresponds to all contingencies (without the pre-contingency situation)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-