Package org.openmuc.jdlms
Enum AccessResultCode
- java.lang.Object
-
- java.lang.Enum<AccessResultCode>
-
- org.openmuc.jdlms.AccessResultCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AccessResultCode>
,DlmsEnumeration
public enum AccessResultCode extends java.lang.Enum<AccessResultCode> implements DlmsEnumeration
Enumeration of all possible result codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_BLOCK_NUMBER_INVALID
The block number in the request is not the one expected, or if the next block cannot be delivered.DATA_BLOCK_UNAVAILABLE
Remote station was not able to create the next PDU of the pending get or setHARDWARE_FAULT
Error on hardware levelLONG_GET_ABORTED
Get that needs several PDUs to sent has been canceledLONG_SET_ABORTED
Set that needs several PDUs to sent has been canceledNO_LONG_GET_IN_PROGRESS
Client requested the next PDU while there is no action with multiple PDUs pendingNO_LONG_SET_IN_PROGRESS
Client requested the next PDU while there is no action with multiple PDUs pendingOBJECT_CLASS_INCONSISTENT
Data is not compatible with method calledOBJECT_UNAVAILABLE
Object is currently not available at smart meter.OBJECT_UNDEFINED
Combination of classId, obisCode and attributeId does not existOTHER_REASON
Reason unknownREAD_WRITE_DENIED
Client does not have the rights to read or write this objectSCOPE_OF_ACCESS_VIOLATED
Client is not authorized to get or set attributeSUCCESS
Method processed successfullyTEMPORARY_FAILURE
Unknown error, try againTYPE_UNMATCHED
Data type is not supported by the remote object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCode()
static AccessResultCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AccessResultCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final AccessResultCode SUCCESS
Method processed successfully
-
HARDWARE_FAULT
public static final AccessResultCode HARDWARE_FAULT
Error on hardware level
-
TEMPORARY_FAILURE
public static final AccessResultCode TEMPORARY_FAILURE
Unknown error, try again
-
READ_WRITE_DENIED
public static final AccessResultCode READ_WRITE_DENIED
Client does not have the rights to read or write this object
-
OBJECT_UNDEFINED
public static final AccessResultCode OBJECT_UNDEFINED
Combination of classId, obisCode and attributeId does not exist
-
OBJECT_CLASS_INCONSISTENT
public static final AccessResultCode OBJECT_CLASS_INCONSISTENT
Data is not compatible with method called
-
OBJECT_UNAVAILABLE
public static final AccessResultCode OBJECT_UNAVAILABLE
Object is currently not available at smart meter.
-
TYPE_UNMATCHED
public static final AccessResultCode TYPE_UNMATCHED
Data type is not supported by the remote object
-
SCOPE_OF_ACCESS_VIOLATED
public static final AccessResultCode SCOPE_OF_ACCESS_VIOLATED
Client is not authorized to get or set attribute
-
DATA_BLOCK_UNAVAILABLE
public static final AccessResultCode DATA_BLOCK_UNAVAILABLE
Remote station was not able to create the next PDU of the pending get or set
-
LONG_GET_ABORTED
public static final AccessResultCode LONG_GET_ABORTED
Get that needs several PDUs to sent has been canceled
-
NO_LONG_GET_IN_PROGRESS
public static final AccessResultCode NO_LONG_GET_IN_PROGRESS
Client requested the next PDU while there is no action with multiple PDUs pending
-
LONG_SET_ABORTED
public static final AccessResultCode LONG_SET_ABORTED
Set that needs several PDUs to sent has been canceled
-
NO_LONG_SET_IN_PROGRESS
public static final AccessResultCode NO_LONG_SET_IN_PROGRESS
Client requested the next PDU while there is no action with multiple PDUs pending
-
DATA_BLOCK_NUMBER_INVALID
public static final AccessResultCode DATA_BLOCK_NUMBER_INVALID
The block number in the request is not the one expected, or if the next block cannot be delivered.
-
OTHER_REASON
public static final AccessResultCode OTHER_REASON
Reason unknown
-
-
Method Detail
-
values
public static AccessResultCode[] 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 (AccessResultCode c : AccessResultCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessResultCode 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
-
getCode
public long getCode()
- Specified by:
getCode
in interfaceDlmsEnumeration
-
-