Package com.powsybl.ucte.network
Enum UcteNodeTypeCode
- java.lang.Object
-
- java.lang.Enum<UcteNodeTypeCode>
-
- com.powsybl.ucte.network.UcteNodeTypeCode
-
- All Implemented Interfaces:
Serializable
,Comparable<UcteNodeTypeCode>
public enum UcteNodeTypeCode extends Enum<UcteNodeTypeCode>
Node type code.- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UcteNodeTypeCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static UcteNodeTypeCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PQ
public static final UcteNodeTypeCode PQ
0 = P and Q constant (PQ node).
-
QT
public static final UcteNodeTypeCode QT
1 = Q and θ constant.
-
PU
public static final UcteNodeTypeCode PU
2 = P and U constant (PU node).
-
UT
public static final UcteNodeTypeCode UT
3 = U and θ constant (global slack node, only one in the whole network).
-
-
Method Detail
-
values
public static UcteNodeTypeCode[] 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 (UcteNodeTypeCode c : UcteNodeTypeCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UcteNodeTypeCode 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
-
-