public abstract class CosemSnInterfaceObject extends CosemInterfaceObject
CosemInterfaceObject
Constructor and Description |
---|
CosemSnInterfaceObject(int objectName,
java.lang.String instanceId)
Create a new CosemSnInterfaceObject.
|
CosemSnInterfaceObject(int objectName,
java.lang.String instanceId,
DlmsInterceptor interceptor) |
CosemSnInterfaceObject(int objectName,
java.lang.String instanceId,
int firstMethodOffset) |
CosemSnInterfaceObject(int objectName,
java.lang.String instanceId,
int firstMethodOffset,
DlmsInterceptor interceptor)
Create a new CosemSnInterfaceObject.
|
Modifier and Type | Method and Description |
---|---|
int |
getFirstMethodOffset() |
int |
getObjectName() |
getInstanceId, getInterceptor
public CosemSnInterfaceObject(int objectName, java.lang.String instanceId, DlmsInterceptor interceptor)
public CosemSnInterfaceObject(int objectName, java.lang.String instanceId, int firstMethodOffset, DlmsInterceptor interceptor)
objectName
- the base name of the object. Addresses the instance ID.instanceId
- the instance ID of the object.firstMethodOffset
- the delta, between the last attribute and the first method of the class.
This is illustrated with Association SN (id:12, v: 2):
The last attribute has id 4 and offset 0x18 (a). The first method id is 4 with ID is 0x30 (m). The first method offset is calculated the following way: (m-a)/8. For Association SN this results to: (0x30-0x18)/8 = (0x18)/8 = 3.
Note: 4 is used as a default value.
interceptor
- the interceptor for this class.public CosemSnInterfaceObject(int objectName, java.lang.String instanceId)
objectName
- the base name of the object. Addresses the instance ID.instanceId
- the instance ID of the object.CosemSnInterfaceObject(int, String, int, DlmsInterceptor)
public CosemSnInterfaceObject(int objectName, java.lang.String instanceId, int firstMethodOffset)