Enum MethodResultCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MethodResultCode>, DlmsEnumeration

    public enum MethodResultCode
    extends java.lang.Enum<MethodResultCode>
    implements DlmsEnumeration
    Enumeration of all possible result code a smart meter can send after a method has been called via an action operation
    • Enum Constant Detail

      • SUCCESS

        public static final MethodResultCode SUCCESS
        Method processed successfully
      • HARDWARE_FAULT

        public static final MethodResultCode HARDWARE_FAULT
        Error on hardware level
      • TEMPORARY_FAILURE

        public static final MethodResultCode TEMPORARY_FAILURE
        Unknown error, try again
      • READ_WRITE_DENIED

        public static final MethodResultCode READ_WRITE_DENIED
        Client does not have the rights to read or write this object
      • OBJECT_UNDEFINED

        public static final MethodResultCode OBJECT_UNDEFINED
        Combination of classId, obisCode and attributeId does not exist
      • OBJECT_CLASS_INCONSISTENT

        public static final MethodResultCode OBJECT_CLASS_INCONSISTENT
        Data is not compatible with method called
      • OBJECT_UNAVAILABLE

        public static final MethodResultCode OBJECT_UNAVAILABLE
        Object is currently not available at smart meter.
      • TYPE_UNMATCHED

        public static final MethodResultCode TYPE_UNMATCHED
        Data type is not supported by the remote object
      • SCOPE_OF_ACCESS_VIOLATION

        public static final MethodResultCode SCOPE_OF_ACCESS_VIOLATION
        Client is not authorized to call method.
      • DATA_BLOCK_UNAVAILABLE

        public static final MethodResultCode DATA_BLOCK_UNAVAILABLE
        Remote station was not able to create the next PDU of the pending action
      • LONG_ACTION_ABORTED

        public static final MethodResultCode LONG_ACTION_ABORTED
        Action that needs several PDUs to sent has been canceled
      • NO_LONG_ACTION_IN_PROGRESS

        public static final MethodResultCode NO_LONG_ACTION_IN_PROGRESS
        Client requested the next PDU while there is no action with multiple PDUs pending
      • OTHER_REASON

        public static final MethodResultCode OTHER_REASON
        Reason unknown
    • Method Detail

      • values

        public static MethodResultCode[] 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 (MethodResultCode c : MethodResultCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MethodResultCode 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 name
        java.lang.NullPointerException - if the argument is null