Is the Node Model infinitely recursive or not?|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Is the Node Model infinitely recursive or not?
Avatar
Max
Member
Members
Forum Posts: 3
Member Since:
04/02/2019
sp_UserOfflineSmall Offline
1
04/08/2019 - 08:52
sp_Permalink sp_Print

Hi,

I'm working myself through the OPC UA specification, trying to make some sense of it. Having prior knowledge in object oriented programming languages I'm having trouble figuring out the subtle differences of concepts that appear so familiar.

It appears to me that the Node Model defines the fundamental building blocks of everything else. Kind of like a grammar maybe?

So here's a little detail question that I have related to the Node Model, based on the following observations:

  1. Every Node Class is based on the Base NodeClass and therefore has an Attribute of NodeId that is of Data Type NodeId. (Spec pt. 3, 5.5, see image below)
  2. NodeClasses are used to define Data Types as well, for example the NodeId Data Type (Spec pt. 3, 8.2)

Given that every Node Class consists of elements that are themselves defined by NodeClasses, does this imply some infinitely recursive structure somehow?

If every Value of an Attribute NodeId (which exists in every Node) is a Node, wouldn't that mean that it itself has (among others) an Attribute NodeId ...ad infinitum?

Or

Is it that the Data Type NodeId has an Attribute NodeId, which is indeed of Data Type NodeId? 

 

I connected to a reference server and could not find any such recursion. Displaying the NodeId Attribute of elements in the tree in the address space (including that of Types.DataTypes.NodeId) only displayed the Attributes as defined in the Data Type definition (namely: namespaceIndex, identifierType and identifier).

Why is that?

spec excerptImage Enlarger

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
04/09/2019 - 07:17
sp_Permalink sp_Print sp_EditHistory

Attributes don't have NodeIds.

Nodes have a NodeId and Attributes.

The Attributes of a Node are read by providing a NodeId and AttributeId (which is number between 1 and 27).

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 17
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855