Enum SunSpecModelType
- java.lang.Object
-
- java.lang.Enum<SunSpecModelType>
-
- io.openems.edge.bridge.modbus.sunspec.SunSpecModelType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SunSpecModelType>
public enum SunSpecModelType extends java.lang.Enum<SunSpecModelType>
This is taken from the first sheet inside the SunSpec excel file.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGGREGATOR
COMMON
ENVIRONMENTAL
INVERTER
METER
NETWORK_CONFIGURATION
PANEL
RESERVED_1
RESERVED_2
STORAGE
STRING_COMBINER
TRACKER
VENDOR_SPECIFIC
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static SunSpecModelType
getModelType(int id)
static SunSpecModelType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SunSpecModelType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMON
public static final SunSpecModelType COMMON
-
AGGREGATOR
public static final SunSpecModelType AGGREGATOR
-
NETWORK_CONFIGURATION
public static final SunSpecModelType NETWORK_CONFIGURATION
-
INVERTER
public static final SunSpecModelType INVERTER
-
METER
public static final SunSpecModelType METER
-
ENVIRONMENTAL
public static final SunSpecModelType ENVIRONMENTAL
-
STRING_COMBINER
public static final SunSpecModelType STRING_COMBINER
-
PANEL
public static final SunSpecModelType PANEL
-
TRACKER
public static final SunSpecModelType TRACKER
-
RESERVED_1
public static final SunSpecModelType RESERVED_1
-
STORAGE
public static final SunSpecModelType STORAGE
-
RESERVED_2
public static final SunSpecModelType RESERVED_2
-
VENDOR_SPECIFIC
public static final SunSpecModelType VENDOR_SPECIFIC
-
-
Method Detail
-
values
public static SunSpecModelType[] 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 (SunSpecModelType c : SunSpecModelType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SunSpecModelType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getModelType
protected static SunSpecModelType getModelType(int id)
-
-