Enum ReferencingMethod
- java.lang.Object
-
- java.lang.Enum<ReferencingMethod>
-
- org.openmuc.jdlms.settings.client.ReferencingMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReferencingMethod>
public enum ReferencingMethod extends java.lang.Enum<ReferencingMethod>
The referencing method which is used to address the COSEM objects or resources.See OpenMUC - DLMS-COSEM user guide for further information.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReferencingMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReferencingMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOGICAL
public static final ReferencingMethod LOGICAL
Use the logical name (LN) referencing method. 6 byte address.
-
SHORT
public static final ReferencingMethod SHORT
Use the short name referencing (SN) method. With SN resources are addressed individually. 13 bits address, first three bits are not used.
-
-
Method Detail
-
values
public static ReferencingMethod[] 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 (ReferencingMethod c : ReferencingMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferencingMethod 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
-
-