Package com.powsybl.ampl.converter
Enum AmplReadableElement
- java.lang.Object
-
- java.lang.Enum<AmplReadableElement>
-
- com.powsybl.ampl.converter.AmplReadableElement
-
- All Implemented Interfaces:
Serializable
,Comparable<AmplReadableElement>
public enum AmplReadableElement extends Enum<AmplReadableElement>
This enum maps elements to their reading function inAmplNetworkReader
- Author:
- Nicolas Pierre < [email protected] >
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BATTERY
BRANCH
BUS
GENERATOR
HVDCLINE
LCC_CONVERTER_STATION
LOAD
PHASE_TAP_CHANGER
RATIO_TAP_CHANGER
SHUNT
STATIC_VAR_COMPENSATOR
VSC_CONVERTER_STATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readElement(AmplNetworkReader reader)
static AmplReadableElement
valueOf(String name)
Returns the enum constant of this type with the specified name.static AmplReadableElement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BATTERY
public static final AmplReadableElement BATTERY
-
BUS
public static final AmplReadableElement BUS
-
BRANCH
public static final AmplReadableElement BRANCH
-
GENERATOR
public static final AmplReadableElement GENERATOR
-
HVDCLINE
public static final AmplReadableElement HVDCLINE
-
LCC_CONVERTER_STATION
public static final AmplReadableElement LCC_CONVERTER_STATION
-
LOAD
public static final AmplReadableElement LOAD
-
PHASE_TAP_CHANGER
public static final AmplReadableElement PHASE_TAP_CHANGER
-
RATIO_TAP_CHANGER
public static final AmplReadableElement RATIO_TAP_CHANGER
-
SHUNT
public static final AmplReadableElement SHUNT
-
STATIC_VAR_COMPENSATOR
public static final AmplReadableElement STATIC_VAR_COMPENSATOR
-
VSC_CONVERTER_STATION
public static final AmplReadableElement VSC_CONVERTER_STATION
-
-
Method Detail
-
values
public static AmplReadableElement[] 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 (AmplReadableElement c : AmplReadableElement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AmplReadableElement 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
-
readElement
public void readElement(AmplNetworkReader reader) throws IOException
- Throws:
IOException
-
-