All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmuc.jdlms.internal.systemclasses.ReadOnlyOctetStrData Maven / Gradle / Ivy

Go to download

jDLMS is a library implementing the DLMS/COSEM (IEC 62056) communication standard.

There is a newer version: 1.8.0
Show newest version
package org.openmuc.jdlms.internal.systemclasses;

import org.openmuc.jdlms.AttributeAccessMode;
import org.openmuc.jdlms.CosemAttribute;
import org.openmuc.jdlms.CosemClass;
import org.openmuc.jdlms.CosemInterfaceObject;
import org.openmuc.jdlms.datatypes.DataObject;
import org.openmuc.jdlms.datatypes.DataObject.Type;
import org.openmuc.jdlms.internal.WellKnownInstanceIds;

@CosemClass(id = 1, version = 0)
public class ReadOnlyOctetStrData extends CosemInterfaceObject {

    @CosemAttribute(id = 2, type = Type.OCTET_STRING, accessMode = AttributeAccessMode.READ_ONLY)
    private final DataObject value;

    public ReadOnlyOctetStrData(DataObject value) {
        super(WellKnownInstanceIds.LOGICAL_DEVICE_NAME_ID);
        this.value = value;
    }

    public DataObject getValue() {
        return this.value;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy