Hi, I am just getting to grips with the concepts of the SDK so please excuse any stupid questions!
I am loading in a model from an xml file using server.getNodeManagerTable().loadModel()
I can then access the NodeManager for these nodes via server.getNodeManagerTable().getNodeManager(NodeId);
I am following the SDK guide and would like to create and trigger a normal event, my problem is that when creating an EventType the constructor wants a NodeManagerUaNode type whereas I have a NodeManager type.
What is the difference between NodeManager and NodeManagerUaNode?
Thanks
Shaun
NodeManager type and EventType
Moderator: uasdkjava
- Support Team
- Hero Member
- Posts: 3069
- Joined: 18 Mar 2011, 15:09
Re: NodeManager type and EventType
Hi Shaun,
NodeManager is the interface between SDK and a application specific class implementing access to a namespace in the server.
NodeManagerUaNode is the tool-kit implementation of the interface NodeManager. It provides an implementation of the interface that simplifies the use of the SDK and works for most use cases.
You should be able to check if the NodeManager interface you get is implemented by NodeManagerUaNode.
Best Regards,
Unified Automation Support Team
NodeManager is the interface between SDK and a application specific class implementing access to a namespace in the server.
NodeManagerUaNode is the tool-kit implementation of the interface NodeManager. It provides an implementation of the interface that simplifies the use of the SDK and works for most use cases.
You should be able to check if the NodeManager interface you get is implemented by NodeManagerUaNode.
Best Regards,
Unified Automation Support Team
-
- Jr. Member
- Posts: 4
- Joined: 20 Mar 2014, 15:49
Re: NodeManager type and EventType
Ah I see so if it supports UaNode I can just cast it to the SDK NodeManagerUaNode type.
Thankyou for your help
Thankyou for your help