16:34, EEST
September 20, 2016
Hello,
I have multiple NodeSet files, and I would like to cross reference them. I can use explicit numbers showing “name space + nodeIDs”, but I would rather use some more intuitive aliases. I tried to use Aliases, but had no success: Something like
<ReferenceType=”HasComponent” IsForward=”false”> My_Referenced_NameSpace; i=An_Alias_Within_Referenced_NameSpace
How can I achieve cross referencing via aliases?
9:49, EEST
April 3, 2012
Good question!
The specification is not clear on this, but our interpretation is that an alias is “full replace only”, i.e. only if complete text matches 100% (.equals), then it is replaced. That is what the SDK currently does.
Also the specification does state (version 1.03, Part 6, Table F.3) that for a Reference the NodeId and ReferenceType “This value can be replaced by an Alias.” The same text does not appear for other values, therefore it is a bit unclear that should it be done for other NodeIds.
It seems currently the SDK does resolve aliases for DataType Attribute and the ReferenceTypeId. Most likely because that is where the standard model uses aliases.
I recommed to use UaModeler for creating the NodeSet files, it will make your work much easier.
Also if you make a circular reference between models (e.g. A needs B and B needs A), it wont work as you would need to load the models in dependency order.
10:19, EEST
April 3, 2012
I suppose I could quote the specification for the first part of my answer,
Spec version 1.03, Part 6, F.2.:
“The Aliases are a list of string substitutions for NodeIds. Aliases can be used to make the file
more readable by allowing a string like ‘HasProperty’ in place of a numeric NodeId ( i=46).”
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: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachusModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1