Enum Class ModbusControlCsvColumn
- All Implemented Interfaces:
Serializable,Comparable<ModbusControlCsvColumn>,Constable,net.solarnetwork.domain.CodedValue
public enum ModbusControlCsvColumn
extends Enum<ModbusControlCsvColumn>
implements net.solarnetwork.domain.CodedValue
The defined column order for Modbus Control CSV.
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe control ID.The data length.The data type.The decimal scale.The instance ID.The unit multiplier.The connection name.The property type.The register address.The register type.The sample cache milliseconds.The unit ID.The word order. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<ModbusControlCsvColumn>The set of columns are specify device-wide settings. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()getName()Get a friendly name for the column.static ModbusControlCsvColumnReturns the enum constant of this class with the specified name.static ModbusControlCsvColumn[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE_ID
The instance ID. -
NETWORK_NAME
The connection name. -
UNIT_ID
The unit ID. -
SAMPLE_CACHE
The sample cache milliseconds. -
WORD_ORDER
The word order. -
CONTROL_ID
The control ID. -
PROP_TYPE
The property type. -
REG_ADDR
The register address. -
REG_TYPE
The register type. -
DATA_TYPE
The data type. -
DATA_LENGTH
The data length. -
MULTIPLIER
The unit multiplier. -
DECIMAL_SCALE
The decimal scale.
-
-
Field Details
-
DEVICE_WIDE_COLUMNS
The set of columns are specify device-wide settings.
-
-
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
-
getCode
public int getCode()- Specified by:
getCodein interfacenet.solarnetwork.domain.CodedValue
-
getName
Get a friendly name for the column.- Returns:
- the name
-