Package agents.policy
Enum SupportPolicy.EnergyCarrier
- java.lang.Object
-
- java.lang.Enum<SupportPolicy.EnergyCarrier>
-
- agents.policy.SupportPolicy.EnergyCarrier
-
- All Implemented Interfaces:
Serializable
,Comparable<SupportPolicy.EnergyCarrier>
- Enclosing class:
- SupportPolicy
public static enum SupportPolicy.EnergyCarrier extends Enum<SupportPolicy.EnergyCarrier>
Available energy carriers eligible for support - and "Other"
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SupportPolicy.EnergyCarrier
valueOf(String name)
Returns the enum constant of this type with the specified name.static SupportPolicy.EnergyCarrier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PV
public static final SupportPolicy.EnergyCarrier PV
Photovoltaic
-
WindOn
public static final SupportPolicy.EnergyCarrier WindOn
onshore wind turbines
-
WindOff
public static final SupportPolicy.EnergyCarrier WindOff
offshore wind turbines
-
RunOfRiver
public static final SupportPolicy.EnergyCarrier RunOfRiver
run-of-river hydro-power
-
Biogas
public static final SupportPolicy.EnergyCarrier Biogas
Biogas
-
Other
public static final SupportPolicy.EnergyCarrier Other
Not eligible for support
-
-
Method Detail
-
values
public static SupportPolicy.EnergyCarrier[] 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 (SupportPolicy.EnergyCarrier c : SupportPolicy.EnergyCarrier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SupportPolicy.EnergyCarrier 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
-
-