.NET Based OPC UA Client/Server SDK
3.2.1.522
|
A table of references with multiple indexes designed to speed up searching. More...
Public Member Functions | |
void | Initialize (IList< ReferenceNode > references) |
Initializes the table with a list of references. More... | |
void | Clear () |
Clears the table. More... | |
List< ReferenceNode > | FindAll () |
Finds all of the references in the table. More... | |
List< ReferenceNode > | Find (NodeId referenceTypeId, bool isInverse, bool includeSubtypes, ITypeTable typeTree) |
Finds references with the specified reference type. More... | |
bool | ReferenceExists (NodeId referenceTypeId, bool isInverse, ExpandedNodeId targetId) |
Checks if the references the exists. More... | |
bool | Add (NodeId referenceTypeId, bool isInverse, ExpandedNodeId targetId, bool checkForDuplicates) |
Adds a new reference to the table. More... | |
bool | Remove (NodeId referenceTypeId, bool isInverse, ExpandedNodeId targetId) |
Removes a reference from the table. More... | |
A table of references with multiple indexes designed to speed up searching.
This class maintains a table of references indexed by the ReferenceTypeId which optimizes look ups based on ReferenceTypeId. It also maintains a table of reference indexed by TargetId which optimizes look ups based on the TargetId.
bool UnifiedAutomation.UaBase.ReferenceTable.Add | ( | NodeId | referenceTypeId, |
bool | isInverse, | ||
ExpandedNodeId | targetId, | ||
bool | checkForDuplicates | ||
) |
Adds a new reference to the table.
referenceTypeId | The reference type identifier. |
isInverse | if set to true if the reference is an inverse reference. |
targetId | The NodeId of the target node. |
checkForDuplicates | if set to true then duplicate references are ignored. Otherwise an exception is throw. |
void UnifiedAutomation.UaBase.ReferenceTable.Clear | ( | ) |
Clears the table.
List<ReferenceNode> UnifiedAutomation.UaBase.ReferenceTable.Find | ( | NodeId | referenceTypeId, |
bool | isInverse, | ||
bool | includeSubtypes, | ||
ITypeTable | typeTree | ||
) |
Finds references with the specified reference type.
referenceTypeId | The reference type identifier. |
isInverse | if set to true then inverse references are returned. |
includeSubtypes | if set to true then subtypes of the reference type are returned. |
typeTree | The type tree used to test for subtypes. |
List<ReferenceNode> UnifiedAutomation.UaBase.ReferenceTable.FindAll | ( | ) |
Finds all of the references in the table.
void UnifiedAutomation.UaBase.ReferenceTable.Initialize | ( | IList< ReferenceNode > | references | ) |
Initializes the table with a list of references.
references | The references. |
bool UnifiedAutomation.UaBase.ReferenceTable.ReferenceExists | ( | NodeId | referenceTypeId, |
bool | isInverse, | ||
ExpandedNodeId | targetId | ||
) |
Checks if the references the exists.
referenceTypeId | The reference type identifier. |
isInverse | if set to true the check for an inverse reference. |
targetId | The NodeId of the target node. |
bool UnifiedAutomation.UaBase.ReferenceTable.Remove | ( | NodeId | referenceTypeId, |
bool | isInverse, | ||
ExpandedNodeId | targetId | ||
) |
Removes a reference from the table.
referenceTypeId | The reference type identifier. |
isInverse | if set to true the reference is an inverse reference. |
targetId | The NodeId of the target node. |