|
||||||||||
| 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.server.nodes.ServerNode
com.prosysopc.ua.server.nodes.BaseNode
com.prosysopc.ua.server.nodes.UaMethodNode
public class UaMethodNode
Straight forward implementation of UaMethod.
It keeps all attributes in memory. Additionally, it manages the
| Field Summary | |
|---|---|
protected static org.opcfoundation.ua.builtintypes.QualifiedName |
INPUT_ARGUMENTS
The name of the InputArguments property (defined in the UA Spec.). |
protected static org.opcfoundation.ua.builtintypes.QualifiedName |
OUTPUT_ARGUMENTS
The name of the OutputArguments property (defined in the UA Spec.) |
| Fields inherited from class com.prosysopc.ua.server.nodes.BaseNode |
|---|
NODE_VERSION_PROPERTY_NAME |
| Fields inherited from class com.prosysopc.ua.server.nodes.ServerNode |
|---|
eventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap |
| Constructor Summary | |
|---|---|
UaMethodNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
|
UaMethodNode(NodeManagerUaNode nodeManager,
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.NodeAttributes 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, referenceTypeInherits |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.opcfoundation.ua.builtintypes.QualifiedName INPUT_ARGUMENTS
protected static final org.opcfoundation.ua.builtintypes.QualifiedName OUTPUT_ARGUMENTS
| Constructor Detail |
|---|
public UaMethodNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
public UaMethodNode(NodeManagerUaNode nodeManager,
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 UaNodegetAttributes in class BaseNodepublic 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 BaseNode
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.NodeAttributes methodAttributes)
setAttributes in interface UaNodesetAttributes in class BaseNodepublic 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 BaseNodeprotected 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 ServerNode
protected void readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
BaseNode
readAttributeValue in class BaseNodeattributeId - 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 BaseNodeStatusException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||