public class UaMethod extends Object
| Constructor and Description |
|---|
UaMethod(OpcUaClient client,
UaObjectNode objectNode,
UaMethodNode methodNode,
org.eclipse.milo.opcua.stack.core.types.structured.Argument[] inputArguments,
org.eclipse.milo.opcua.stack.core.types.structured.Argument[] outputArguments) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.milo.opcua.stack.core.types.builtin.Variant[] |
call(org.eclipse.milo.opcua.stack.core.types.builtin.Variant[] inputs)
Call this method, passing the values in
inputs for the input arguments. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.Variant[]> |
callAsync(org.eclipse.milo.opcua.stack.core.types.builtin.Variant[] inputs)
Call this method, passing the values in
inputs for the input arguments. |
org.eclipse.milo.opcua.stack.core.types.structured.Argument[] |
getInputArguments()
Get the input arguments for this method.
|
UaMethodNode |
getMethodNode()
Get the
UaMethodNode for this method. |
UaObjectNode |
getObjectNode()
Get the
UaObjectNode this method belongs to. |
org.eclipse.milo.opcua.stack.core.types.structured.Argument[] |
getOutputArguments()
Get the output arguments for this method.
|
public UaMethod(OpcUaClient client, UaObjectNode objectNode, UaMethodNode methodNode, org.eclipse.milo.opcua.stack.core.types.structured.Argument[] inputArguments, org.eclipse.milo.opcua.stack.core.types.structured.Argument[] outputArguments)
public UaObjectNode getObjectNode()
UaObjectNode this method belongs to.UaObjectNode this method belongs to.public UaMethodNode getMethodNode()
UaMethodNode for this method.UaMethodNode for this method.public org.eclipse.milo.opcua.stack.core.types.structured.Argument[] getInputArguments()
The array will be empty if there are no inputs.
public org.eclipse.milo.opcua.stack.core.types.structured.Argument[] getOutputArguments()
The array will be empty if there are no outputs.
public org.eclipse.milo.opcua.stack.core.types.builtin.Variant[] call(org.eclipse.milo.opcua.stack.core.types.builtin.Variant[] inputs)
throws UaMethodException,
org.eclipse.milo.opcua.stack.core.UaException
inputs for the input arguments.inputs - an array of Variants containing the input values.Variants containing the output values.org.eclipse.milo.opcua.stack.core.UaException - if a service-level error occurs.UaMethodException - if the operation-level result was not good.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.Variant[]> callAsync(org.eclipse.milo.opcua.stack.core.types.builtin.Variant[] inputs)
inputs for the input arguments.
This method completes asynchronously.
inputs - an array of Variants containing the input values.CompletableFuture that completes successfully with the output values or
completes exceptionally if an operation- or service-level error occurs.Copyright © 2021. All rights reserved.