Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
getComponent() vs. getReferences()
August 5, 2015
17:28, EEST
Avatar
Christian Hinder
Member
Members
Forum Posts: 4
Member Since:
August 5, 2015
sp_UserOfflineSmall Offline

Hi,

I want to brows on a server all components attached, to see which objects are there.
Now my question is follow:

I put the results into a list for future use.
Therefore I see two possibilities:
1. get the references, and store the ExpandedNodeId or NodeId
2. get the components and store the UaNode.

The second possibility seams for me more nice, because then I don’t have References to nodes which are just as organizers there.
But what I am thinking about is follow:
If I load a UaNode instead a NodeId, does it load as well the whol subtree of it? or is it just the UaNode?
Is there many difference between the used dataspace if I store them in a list?

Thank you for your answer.

August 10, 2015
11:08, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1026
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

It depends what you want do with the nodes later. Loading an UaNode (AddressSpace.getNode) loads all attributes and references. The references that are HasProperty are loaded completely, other references are stored as NodeId in a way that if you do call getXXXNode methods on UaReference it gets the node (AddressSpace.getNode internally). Storing UaNodes takes more space than storing just NodeIds (since a NodeId is similar to a pointer/reference in a programming language and the UaNode is similar to an object containing all the data).

– Bjarne

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6451

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1