com.prosysopc.ua.server.nodes
Class UaServerReference

java.lang.Object
  extended by com.prosysopc.ua.nodes.UaReference
      extended by com.prosysopc.ua.server.nodes.UaServerReference
All Implemented Interfaces:
Comparable<UaReference>

public class UaServerReference
extends UaReference

UA reference implementation for the server side.


Constructor Summary
UaServerReference(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId, UaNode sourceNode, UaNode targetNode)
           
UaServerReference(UaReferenceType referenceType, UaNode sourceNode, UaNode targetNode)
           
 
Method Summary
 void delete()
           
 boolean equals(Object obj)
           
 boolean getIsInverse(org.opcfoundation.ua.builtintypes.NodeId nodeId)
           
 boolean getIsInverse(UaNode node)
          Whether the reference is a forward or inverse reference.
static UaServerReference getReferenceInstance(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId, UaNode sourceNode, UaNode targetNode)
           
static UaServerReference getReferenceInstance(UaReferenceType referenceType, UaNode sourceNode, UaNode targetNode)
           
 UaReferenceType getReferenceType()
          Get the ReferenceType node, if defined.
 org.opcfoundation.ua.builtintypes.NodeId getReferenceTypeId()
           
 org.opcfoundation.ua.builtintypes.ExpandedNodeId getSourceId()
          NodeId of the SourceNode as assigned by the Server identified by the Server index.
 UaNode getSourceNode()
           
 org.opcfoundation.ua.builtintypes.ExpandedNodeId getTargetId()
          NodeId of the TargetNode as assigned by the Server identified by the Server index.
 UaNode getTargetNode()
          Reference to the target node object.
 int hashCode()
           
 boolean isSymmetric()
           
 String toString()
           
 
Methods inherited from class com.prosysopc.ua.nodes.UaReference
compareTo, getOppositeNode, getOppositeNodeId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UaServerReference

public UaServerReference(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
                         UaNode sourceNode,
                         UaNode targetNode)

UaServerReference

public UaServerReference(UaReferenceType referenceType,
                         UaNode sourceNode,
                         UaNode targetNode)
Method Detail

getReferenceInstance

public static UaServerReference getReferenceInstance(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
                                                     UaNode sourceNode,
                                                     UaNode targetNode)

getReferenceInstance

public static UaServerReference getReferenceInstance(UaReferenceType referenceType,
                                                     UaNode sourceNode,
                                                     UaNode targetNode)

delete

public void delete()
Specified by:
delete in class UaReference

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getIsInverse

public boolean getIsInverse(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Specified by:
getIsInverse in class UaReference
Returns:

getIsInverse

public boolean getIsInverse(UaNode node)
Whether the reference is a forward or inverse reference.

Specified by:
getIsInverse in class UaReference
Returns:
true if the reference is an inverse reference.

getReferenceType

public UaReferenceType getReferenceType()
Get the ReferenceType node, if defined. ReferenceTypeId is always defined, but the corresponding type node might not be available.

Specified by:
getReferenceType in class UaReference
Returns:
the referenceType node.

getReferenceTypeId

public org.opcfoundation.ua.builtintypes.NodeId getReferenceTypeId()
Specified by:
getReferenceTypeId in class UaReference
Returns:
NodeId of the ReferenceType that defines the Reference.
See Also:
getReferenceType()

getSourceId

public org.opcfoundation.ua.builtintypes.ExpandedNodeId getSourceId()
NodeId of the SourceNode as assigned by the Server identified by the Server index.

If the serverIndex indicates that the SourceNode is a remote Node, then the nodeId shall contain the absolute namespace URI. If the SourceNode is a local Node the nodeId shall contain the namespace index. If SourceNode is defined, this will be equal to the NodeId of that.

Specified by:
getSourceId in class UaReference
Returns:
The NodeId of the reference source.

getSourceNode

public UaNode getSourceNode()
Specified by:
getSourceNode in class UaReference
Returns:

getTargetId

public org.opcfoundation.ua.builtintypes.ExpandedNodeId getTargetId()
NodeId of the TargetNode as assigned by the Server identified by the Server index.

If the serverIndex indicates that the TargetNode is a remote Node, then the nodeId shall contain the absolute namespace URI. If the TargetNode is a local Node the nodeId shall contain the namespace index. If TargetNode is defined, this will be equal to the NodeId of that.

Specified by:
getTargetId in class UaReference
Returns:
The NodeId of the reference target.

getTargetNode

public UaNode getTargetNode()
Reference to the target node object. The object may also be null, in which case, the targetNodeId defines the target of the reference.

Specified by:
getTargetNode in class UaReference
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isSymmetric

public boolean isSymmetric()
Returns:

toString

public String toString()
Overrides:
toString in class UaReference


Copyright © 2018. All rights reserved.