Package org.openmuc.jdlms
Class SnAddressSpec
- java.lang.Object
-
- org.openmuc.jdlms.SnAddressSpec
-
public class SnAddressSpec extends java.lang.Object
Variable Access Specification of COSEM attributes or methods.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectiveAccessDescription
getParameterizedAccessDescriptor()
Get the parameterized access descriptor.int
getVariableName()
Get the variable name.static SnAddressSpec
newAttributeAddress(int variableName)
Create a new SN attribute address.static SnAddressSpec
newAttributeAddress(int variableName, SelectiveAccessDescription parameterizedAccess)
Create a new SN attribute address with parameterized access specification.static SnAddressSpec
newMethodAddress(int methodName)
Create a new SN method address without method parameter.static SnAddressSpec
newMethodAddress(int methodName, DataObject invocationParameter)
Create a new SN method address with invocation parameter.java.lang.String
toString()
-
-
-
Method Detail
-
newAttributeAddress
public static SnAddressSpec newAttributeAddress(int variableName)
Create a new SN attribute address.- Parameters:
variableName
- the variable name of the COSEM attribute.- Returns:
- a new SN attribute address.
-
newAttributeAddress
public static SnAddressSpec newAttributeAddress(int variableName, SelectiveAccessDescription parameterizedAccess)
Create a new SN attribute address with parameterized access specification.- Parameters:
variableName
- the variable name of the COSEM attribute.parameterizedAccess
- the parameterized access descriptor.- Returns:
- a new SN attribute address.
-
newMethodAddress
public static SnAddressSpec newMethodAddress(int methodName, DataObject invocationParameter)
Create a new SN method address with invocation parameter.- Parameters:
methodName
- the short method (variable) name.invocationParameter
- the invocation parameter of the COSEM method.- Returns:
- a new SN method address.
-
newMethodAddress
public static SnAddressSpec newMethodAddress(int methodName)
Create a new SN method address without method parameter.- Parameters:
methodName
- the short method (variable) name.- Returns:
- a new SN method address.
-
getVariableName
public int getVariableName()
Get the variable name.- Returns:
- the two byte variable name.
-
getParameterizedAccessDescriptor
public SelectiveAccessDescription getParameterizedAccessDescriptor()
Get the parameterized access descriptor.- Returns:
- the parameterized access descriptor.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-