public enum MethodResultCode extends java.lang.Enum<MethodResultCode> implements DlmsEnumeration
Enum Constant and Description |
---|
DATA_BLOCK_UNAVAILABLE
Remote station was not able to create the next PDU of the pending action
|
HARDWARE_FAULT
Error on hardware level
|
LONG_ACTION_ABORTED
Action that needs several PDUs to sent has been canceled
|
NO_LONG_ACTION_IN_PROGRESS
Client requested the next PDU while there is no action with multiple PDUs pending
|
OBJECT_CLASS_INCONSISTENT
Data is not compatible with method called
|
OBJECT_UNAVAILABLE
Object is currently not available at smart meter.
|
OBJECT_UNDEFINED
Combination of classId, obisCode and attributeId does not exist
|
OTHER_REASON
Reason unknown
|
READ_WRITE_DENIED
Client does not have the rights to read or write this object
|
SCOPE_OF_ACCESS_VIOLATION
Client is not authorized to call method.
|
SUCCESS
Method processed successfully
|
TEMPORARY_FAILURE
Unknown error, try again
|
TYPE_UNMATCHED
Data type is not supported by the remote object
|
Modifier and Type | Method and Description |
---|---|
long |
getCode() |
static MethodResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MethodResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodResultCode SUCCESS
public static final MethodResultCode HARDWARE_FAULT
public static final MethodResultCode TEMPORARY_FAILURE
public static final MethodResultCode READ_WRITE_DENIED
public static final MethodResultCode OBJECT_UNDEFINED
public static final MethodResultCode OBJECT_CLASS_INCONSISTENT
public static final MethodResultCode OBJECT_UNAVAILABLE
public static final MethodResultCode TYPE_UNMATCHED
public static final MethodResultCode SCOPE_OF_ACCESS_VIOLATION
public static final MethodResultCode DATA_BLOCK_UNAVAILABLE
public static final MethodResultCode LONG_ACTION_ABORTED
public static final MethodResultCode NO_LONG_ACTION_IN_PROGRESS
public static final MethodResultCode OTHER_REASON
public static MethodResultCode[] values()
for (MethodResultCode c : MethodResultCode.values()) System.out.println(c);
public static MethodResultCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic long getCode()
getCode
in interface DlmsEnumeration