|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.nodes.AbstractUaNode
com.prosysopc.ua.client.nodes.UaNodeImpl
com.prosysopc.ua.client.nodes.UaMethodImpl
public class UaMethodImpl
Straight forward implementation of UaMethod.
It keeps all attributes in memory. Additionally, it manages the
| Field Summary |
|---|
| Fields inherited from class com.prosysopc.ua.client.nodes.UaNodeImpl |
|---|
addressSpace, logger, references, supportedAttributesMap |
| Constructor Summary | |
|---|---|
UaMethodImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
|
UaMethodImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName,
org.opcfoundation.ua.builtintypes.LocalizedText description,
EnumSet<WriteAccess> writeMask,
EnumSet<WriteAccess> userWriteMask,
UaClientReference[] references,
UaProperty[] properties,
Boolean executable,
Boolean userExecutable)
|
|
UaMethodImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
|
|
| Method Summary | |
|---|---|
org.opcfoundation.ua.core.NodeAttributes |
getAttributes()
|
protected org.opcfoundation.ua.core.NodeAttributes |
getAttributes(org.opcfoundation.ua.core.MethodAttributes attributes)
|
Boolean |
getExecutable()
The Executable Attribute indicates if the Method is currently executable ('False' means not executable, 'True' means executable). |
org.opcfoundation.ua.core.Argument[] |
getInputArguments()
The InputArguments Property is used to specify the arguments that shall be used by a client when calling the Method. |
org.opcfoundation.ua.core.NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node. |
org.opcfoundation.ua.core.Argument[] |
getOutputArguments()
The OutputArguments Property specifies the result returned from the Method call. |
Boolean |
getUserExecutable()
The UserExecutable Attribute indicates if the Method is currently executable taking user access rights into account ('False' means not executable, 'True' means executable). |
protected void |
initSupportedAttributes(List<org.opcfoundation.ua.builtintypes.UnsignedInteger> l)
|
protected void |
readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
Read the value of an attribute. |
void |
setAttributes(org.opcfoundation.ua.core.MethodAttributes methodAttributes)
|
void |
setExecutable(Boolean executable)
|
void |
setUserExecutable(Boolean userExecutable)
|
String |
toString()
|
protected void |
writeAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
Object value,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DateTime sourceTime,
org.opcfoundation.ua.builtintypes.UnsignedShort sourcePicoseconds)
|
| Methods inherited from class com.prosysopc.ua.nodes.AbstractUaNode |
|---|
getForwardReferences, getInverseReferences, getReferences, getReferences, getReferencesAsList, referenceTypeInherits |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UaMethodImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
public UaMethodImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName,
org.opcfoundation.ua.builtintypes.LocalizedText description,
EnumSet<WriteAccess> writeMask,
EnumSet<WriteAccess> userWriteMask,
UaClientReference[] references,
UaProperty[] properties,
Boolean executable,
Boolean userExecutable)
public UaMethodImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
nodeId - name - locale - | Method Detail |
|---|
public org.opcfoundation.ua.core.NodeAttributes getAttributes()
getAttributes in interface UaNodepublic Boolean getExecutable()
UaMethod
getExecutable in interface UaMethod
public org.opcfoundation.ua.core.Argument[] getInputArguments()
throws MethodArgumentException
UaMethod
getInputArguments in interface UaMethodMethodArgumentException - if the property does not contain valid argument valuespublic final org.opcfoundation.ua.core.NodeClass getNodeClass()
UaNode
getNodeClass in interface UaNodegetNodeClass in class UaNodeImpl
public org.opcfoundation.ua.core.Argument[] getOutputArguments()
throws MethodArgumentException
UaMethod
getOutputArguments in interface UaMethodMethodArgumentException - if the property does not contain valid argument valuespublic Boolean getUserExecutable()
UaMethod
getUserExecutable in interface UaMethodpublic void setAttributes(org.opcfoundation.ua.core.MethodAttributes methodAttributes)
public void setExecutable(Boolean executable)
setExecutable in interface UaMethodexecutable - value to set for executableUaMethod.getExecutable()public void setUserExecutable(Boolean userExecutable)
setUserExecutable in interface UaMethoduserExecutable - value to set for user executableUaMethod.getUserExecutable()public String toString()
toString in class UaNodeImplprotected org.opcfoundation.ua.core.NodeAttributes getAttributes(org.opcfoundation.ua.core.MethodAttributes attributes)
protected void initSupportedAttributes(List<org.opcfoundation.ua.builtintypes.UnsignedInteger> l)
initSupportedAttributes in class UaNodeImpl
protected void readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
UaNodeImpl
readAttributeValue in class UaNodeImplattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.
StatusException
protected void writeAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
Object value,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DateTime sourceTime,
org.opcfoundation.ua.builtintypes.UnsignedShort sourcePicoseconds)
throws StatusException
writeAttributeValue in class UaNodeImplStatusException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||