@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface CosemClass
The CosemClass
annotation tells jDLMS stack that the annotated class is a DLMS.
@CosemClass
(id = 99, obis = "0.2.0.0.0.255", version = 2)
public class DemoClass {
...
}
CosemMethod
,
CosemAttribute
Modifier and Type | Required Element and Description |
---|---|
int |
id
The COSEM class ID.
|
java.lang.String |
obis
The instance ID of the COSEM class.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
version
The version of the COSEM class.
|
public abstract java.lang.String obis
NOTE: The instance ID is not allowed to use the instance ID of a COSEM system class.
public abstract int id
public abstract int version
The version must be a positive number.