org.openmuc.jdlms.AttributeAccessMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdlms Show documentation
Show all versions of jdlms Show documentation
jDLMS is a library implementing the DLMS/COSEM (IEC 62056) communication standard.
package org.openmuc.jdlms;
import org.openmuc.jdlms.internal.DlmsEnumeration;
/**
* The access restrictions for COSEM attributes.
*/
public enum AttributeAccessMode implements DlmsEnumeration {
NO_ACCESS(0),
READ_ONLY(1),
WRITE_ONLY(2),
READ_AND_WRITE(3),
AUTHENTICATED_READ_ONLY(4),
AUTHENTICATED_WRITE_ONLY(5),
AUTHENTICATED_READ_AND_WRITE(6);
private int code;
private AttributeAccessMode(int code) {
this.code = code;
}
@Override
public long getCode() {
return code;
}
}