Utility for creating Fully-inherited InstanceDeclarationHierarchy from types. Types are imported from nodeset2 xml files.
$ dotnet add package TGS.Prediktor.Semantics.ServiceSemantics Types API is a C# library tool for creating Fully-Inherited InstanceDeclarationHierarchy from OPC UA types.
The OPC UA types are imported from a Nodeset2.xml file. (The file cannot include instances).
Create an instance of TypeNodeManager. The TypeNodeManager requires a persistence store that implements INodeStore. You can use LiteNodeStore for this. LiteNodeStore uses an in memory SQLite db. Use the TypeNodeManager to get Fully-Inherited InstanceDeclarationHierarchy for your types.
var tns = new LiteNodeStore(true);
TypeNodeManager tm = new(tns);
var file = "My.NodeSet2.xml";
var uanodeset = UANodeSet.Read(new FileStream(file, FileMode.Open, FileAccess.Read));
tm.ImportTypes(uanodeset);
SemTypeNode fullyInherited = tm.GetTypeDef(new NodeId("ns=1;i=1009"));
The variable 'fullyInherited' of class SemTypeNode will contain a full description of the Fully-Inherited InstanceDeclarationHierarchy.
The library does not support parallel execution for write operations due to transaction usage. The library is thread-safe for read operations.
Visit us and check out our OPC UA Gateway: TGS Prediktor