com.prosysopc.ua.server
Class MethodManagerUaNode

java.lang.Object
  extended by com.prosysopc.ua.server.ServiceManagerBase
      extended by com.prosysopc.ua.server.MethodManager
          extended by com.prosysopc.ua.server.MethodManagerUaNode

public class MethodManagerUaNode
extends MethodManager

A generic method manager implementation, which dispatches the method calls to UaNodes.


Constructor Summary
MethodManagerUaNode(NodeManager nodeManager)
           
 
Method Summary
 void addCallListener(CallableListener listener)
           
 org.opcfoundation.ua.builtintypes.Variant[] callMethod(ServiceContext serviceContext, org.opcfoundation.ua.builtintypes.NodeId objectId, org.opcfoundation.ua.builtintypes.NodeId methodId, org.opcfoundation.ua.builtintypes.Variant[] inputArguments, org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults, org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos)
          Handle a method call.
protected  void checkInputArguments(org.opcfoundation.ua.builtintypes.Variant[] inputArguments, org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults, org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos, UaMethod method)
           
protected  void checkOutputArguments(org.opcfoundation.ua.builtintypes.Variant[] outputArguments, UaMethod method)
           
protected  boolean fireCall(ServiceContext serviceContext, org.opcfoundation.ua.builtintypes.Variant[] inputArguments, org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults, org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos, org.opcfoundation.ua.builtintypes.NodeId objectId, UaNode node, org.opcfoundation.ua.builtintypes.NodeId methodId, UaMethod method, org.opcfoundation.ua.builtintypes.Variant[] output)
           
 void removeCallListener(CallableListener listener)
           
protected  boolean requireUaNode()
           
 
Methods inherited from class com.prosysopc.ua.server.MethodManager
checkInputArguments, checkInputArguments, getNodeManager
 
Methods inherited from class com.prosysopc.ua.server.ServiceManagerBase
arrayDimensionsMatch, checkIsMethod, checkIsValueNode, checkIsVariable, checkIsVariableOrVariableType, dataTypeEquals, getNode, getNode, getNode, getNode, getNodeManagerTable, getServer, getSubscriptionManager, isValueNode, isVariable, listenerError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodManagerUaNode

public MethodManagerUaNode(NodeManager nodeManager)
Parameters:
nodeManager -
Method Detail

addCallListener

public void addCallListener(CallableListener listener)

callMethod

public org.opcfoundation.ua.builtintypes.Variant[] callMethod(ServiceContext serviceContext,
                                                              org.opcfoundation.ua.builtintypes.NodeId objectId,
                                                              org.opcfoundation.ua.builtintypes.NodeId methodId,
                                                              org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
                                                              org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
                                                              org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos)
                                                       throws StatusException
Description copied from class: MethodManager
Handle a method call.

Overrides:
callMethod in class MethodManager
objectId - The object to which method applies
methodId - The method to call
inputArguments - optional input argument values
Returns:
optional output argument values
Throws:
StatusException - if the call fails

removeCallListener

public void removeCallListener(CallableListener listener)

checkInputArguments

protected void checkInputArguments(org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
                                   org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
                                   org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos,
                                   UaMethod method)
                            throws StatusException
Parameters:
inputArguments -
inputArgumentResults -
inputArgumentDiagnosticInfos -
method -
Throws:
StatusException

checkOutputArguments

protected void checkOutputArguments(org.opcfoundation.ua.builtintypes.Variant[] outputArguments,
                                    UaMethod method)
                             throws StatusException
Parameters:
outputArguments -
method -
Throws:
StatusException

fireCall

protected boolean fireCall(ServiceContext serviceContext,
                           org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
                           org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
                           org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos,
                           org.opcfoundation.ua.builtintypes.NodeId objectId,
                           UaNode node,
                           org.opcfoundation.ua.builtintypes.NodeId methodId,
                           UaMethod method,
                           org.opcfoundation.ua.builtintypes.Variant[] output)
                    throws StatusException
Parameters:
serviceContext -
inputArguments -
inputArgumentResults -
inputArgumentDiagnosticInfos -
objectId -
node -
methodId -
method -
output -
Returns:
Throws:
StatusException

requireUaNode

protected boolean requireUaNode()
Overrides:
requireUaNode in class ServiceManagerBase


Copyright © 2018. All rights reserved.