Reference |
References are used to relate Nodes to each other. They can be accessed using the browsing and querying Services.
Like Attributes, they are defined as fundamental components of Nodes. Unlike Attributes, References are defined as instances of ReferenceType Nodes. ReferenceType Nodes are visible in the Address Space and are defined using the ReferenceType node class.
The Node that contains the Reference is referred to as the source node and the Node that is referenced is referred to as the TargetNode. The combination of the source node, the ReferenceType and the target node are used in OPC Unified Architecture Services to uniquely identify References. Thus, each node can reference another node with the same ReferenceType only once. Any subtypes of specific ReferenceTypes are considered to be equal to the base specific ReferenceTypes when identifying References (see ReferenceTypes).
Reference properties:
Is One Way - the value indicating whether this reference is one way.
IsInverse - the value indicating whether this reference is inverse.
ReferenceType - the type of the reference.
Default value – the default value of the ReferenceType.
Is Empty - indicates if the ReferenceType is empty.
Name – the name of the ReferenceType.
Namespace - anamespace that qualifies the ReferenceType name.
TargetId - the identifier of the TargetNode. TargetNode is a Node that is referenced by another Node. For example, in the Reference “A Contains B”, “B” is the TargetNode and it is pointed by the TargetId.
IsEmpty - indicates if the TargetId is empty.
Name – the name of the TargetId.
Namespace – a namespace that qualifies the name of the TargetId.