public class UaMethodNode extends UaNode implements MethodNode
| Constructor and Description |
|---|
UaMethodNode(OpcUaClient client,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass,
org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName,
org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName,
org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask,
Boolean executable,
Boolean userExecutable) |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.milo.opcua.stack.core.types.builtin.DataValue |
getAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId) |
Boolean |
isExecutable() |
Boolean |
isUserExecutable() |
Boolean |
readExecutable()
Read the Executable attribute for this Node from the server and update the local attribute
if the operation succeeds.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.Argument[]> |
readInputArgumentsAsync()
Get the value of the
MethodNodeProperties.InputArguments Property, if it exists. |
CompletableFuture<? extends String> |
readNodeVersionAsync()
Get the value of the
MethodNodeProperties.NodeVersion Property, if it exists. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.Argument[]> |
readOutputArgumentsAsync()
Get the value of the
MethodNodeProperties.OutputArguments Property, if it exists. |
Boolean |
readUserExecutable()
Read the UserExecutable attribute for this Node from the server and update the local
attribute if the operation succeeds.
|
protected void |
setAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId,
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value) |
void |
setExecutable(Boolean executable) |
void |
setUserExecutable(Boolean userExecutable) |
void |
writeExecutable(Boolean executable)
Write a new Executable attribute for this Node to the server and update the local attribute
if the operation succeeds.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> |
writeInputArgumentsAsync(org.eclipse.milo.opcua.stack.core.types.structured.Argument[] inputArguments)
Set the value of the
MethodNodeProperties.InputArguments Property, if it exists. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> |
writeNodeVersionAsync(String nodeVersion)
Set the value of the
MethodNodeProperties.NodeVersion Property, if it exists. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> |
writeOutputArgumentsAsync(org.eclipse.milo.opcua.stack.core.types.structured.Argument[] outputArguments)
Set the value of the
MethodNodeProperties.OutputArguments Property, if it exists. |
void |
writeUserExecutable(Boolean userExecutable)
Write a new UserExecutable attribute for this Node to the server and update the local
attribute if the operation succeeds.
|
browse, browse, browseAsync, browseAsync, browseNodes, browseNodes, browseNodesAsync, browseNodesAsync, canonicalize, cast, findMemberNodeId, getBrowseName, getComponentAsync, getDescription, getDisplayName, getMemberNodeAsync, getNodeClass, getNodeId, getProperty, getPropertyNodeAsync, getPropertyNodeAsync, getUserWriteMask, getWriteMask, invalidate, readAttribute, readAttributeAsync, readBrowseName, readDescription, readDisplayName, readNamespaceIndex, readNodeClass, readNodeId, readProperty, readUserWriteMask, readWriteMask, refresh, refreshAsync, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setProperty, setUserWriteMask, setWriteMask, synchronize, synchronizeAsync, writeAttribute, writeAttributeAsync, writeBrowseName, writeDescription, writeDisplayName, writeNodeClass, writeNodeId, writeProperty, writeUserWriteMask, writeWriteMaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMaskpublic UaMethodNode(OpcUaClient client, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass, org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask, Boolean executable, Boolean userExecutable)
public Boolean isExecutable()
The returned attribute is the most recently seen value; it is not read live from the server.
isExecutable in interface MethodNodereadExecutable()public Boolean isUserExecutable()
The returned attribute is the most recently seen value; it is not read live from the server.
isUserExecutable in interface MethodNodereadUserExecutable()public void setExecutable(Boolean executable)
The attribute is only updated locally; it is not written to the server.
setExecutable in interface MethodNodewriteExecutable(Boolean)public void setUserExecutable(Boolean userExecutable)
The attribute is only updated locally; it is not written to the server.
setUserExecutable in interface MethodNodewriteUserExecutable(Boolean)public Boolean readExecutable() throws org.eclipse.milo.opcua.stack.core.UaException
Boolean read from the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.spublic Boolean readUserExecutable() throws org.eclipse.milo.opcua.stack.core.UaException
Boolean read from the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.spublic void writeExecutable(Boolean executable) throws org.eclipse.milo.opcua.stack.core.UaException
executable - the Boolean to write to the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public void writeUserExecutable(Boolean userExecutable) throws org.eclipse.milo.opcua.stack.core.UaException
userExecutable - the Boolean to write to the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public CompletableFuture<? extends String> readNodeVersionAsync()
MethodNodeProperties.NodeVersion Property, if it exists.
The NodeVersion Property is used to indicate the version of a Node.
The NodeVersion Property is updated each time a Reference is added or deleted to the Node the Property belongs to. Attribute value changes do not cause the NodeVersion to change. Clients may read the NodeVersion Property or subscribe to it to determine when the structure of a Node has changed.
This Property is optional. If not present, the future will be completed exceptionally with a UaException
indicating StatusCodes.Bad_NotFound.
MethodNodePropertiespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.Argument[]> readInputArgumentsAsync()
MethodNodeProperties.InputArguments Property, if it exists.
The InputArguments Property is used to specify the arguments that shall be used by a client when calling the Method.
This Property is optional. If not present, the future will be completed exceptionally with a UaException
indicating StatusCodes.Bad_NotFound.
MethodNodePropertiespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.Argument[]> readOutputArgumentsAsync()
MethodNodeProperties.OutputArguments Property, if it exists.
The OutputArguments Property specifies the result returned from the Method call.
This Property is optional. If not present, the future will be completed exceptionally with a UaException
indicating StatusCodes.Bad_NotFound.
MethodNodePropertiespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeNodeVersionAsync(String nodeVersion)
MethodNodeProperties.NodeVersion Property, if it exists.nodeVersion - the value to set.CompletableFuture that completes with the StatusCode of the write operation.MethodNodePropertiespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeInputArgumentsAsync(org.eclipse.milo.opcua.stack.core.types.structured.Argument[] inputArguments)
MethodNodeProperties.InputArguments Property, if it exists.inputArguments - the value to set.CompletableFuture that completes with the StatusCode of the write operation.MethodNodePropertiespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeOutputArgumentsAsync(org.eclipse.milo.opcua.stack.core.types.structured.Argument[] outputArguments)
MethodNodeProperties.OutputArguments Property, if it exists.outputArguments - the value to set.CompletableFuture that completes with the StatusCode of the write operation.MethodNodePropertiesprotected org.eclipse.milo.opcua.stack.core.types.builtin.DataValue getAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId)
getAttributeValue in class UaNodeprotected void setAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId,
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
setAttributeValue in class UaNodeCopyright © 2021. All rights reserved.