Enum AccessResultCode

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