com.prosysopc.ua.server.nodes
Class UaReferenceTypeNode
java.lang.Object
com.prosysopc.ua.nodes.AbstractUaNode
com.prosysopc.ua.server.nodes.ServerNode
com.prosysopc.ua.server.nodes.BaseNode
com.prosysopc.ua.server.nodes.UaTypeNode
com.prosysopc.ua.server.nodes.UaReferenceTypeNode
- All Implemented Interfaces:
- UaNode, UaReferenceType, UaType
public class UaReferenceTypeNode
- extends UaTypeNode
- implements UaReferenceType
Straight forward implementation of UaReferenceType.
It keeps all attributes in memory.
|
Constructor Summary |
UaReferenceTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
Initialize a new non-abstract, symmetric reference type. |
UaReferenceTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String browseName,
Locale locale)
Initialize a new non-abstract, symmetric reference type. |
|
Method Summary |
org.opcfoundation.ua.core.NodeAttributes |
getAttributes()
|
protected org.opcfoundation.ua.core.ReferenceTypeAttributes |
getAttributes(org.opcfoundation.ua.core.ReferenceTypeAttributes attributes)
|
org.opcfoundation.ua.builtintypes.LocalizedText |
getInverseName()
The inverse name of the Reference, i.e. the meaning of the ReferenceType as seen from the
TargetNode. |
org.opcfoundation.ua.core.NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node. |
Boolean |
getSymmetric()
A boolean Attribute with the following values:
true
the meaning of the ReferenceType is the same as seen from both the SourceNode and the
TargetNode. |
protected void |
initSupportedAttributes(List<org.opcfoundation.ua.builtintypes.UnsignedInteger> l)
|
protected void |
readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
Read the value of an attribute. |
void |
setAttributes(org.opcfoundation.ua.core.NodeAttributes nodeAttributes)
|
void |
setInverseName(org.opcfoundation.ua.builtintypes.LocalizedText inverseName)
|
void |
setSymmetric(Boolean symmetric)
|
String |
toString()
|
protected void |
writeAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
Object value,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DateTime sourceTime,
org.opcfoundation.ua.builtintypes.UnsignedShort sourcePicoseconds)
|
| Methods inherited from class com.prosysopc.ua.server.nodes.UaTypeNode |
addSubType, afterAddReference, beforeAddReference, getComponent, getInstanceDeclarationHierarchy, getIsAbstract, getJavaClass, getSuperType, hasSuperType, inheritsFrom, inheritsFrom, resetInstanceDeclarationHierarchy, setIsAbstract, setJavaClass, setSuperType |
| Methods inherited from class com.prosysopc.ua.server.nodes.BaseNode |
addPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getBrowseName, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeVersion, getNodeVersionValue, getProperties, getProperty, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, hasTypeDefinition, hasUserWriteAccess, hasWriteAccess, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setBrowseName, setDescription, setDisplayName, setNodeVersionValue, setPropertyValue, setUserWriteMask, setWriteMask, writeAttribute |
| Methods inherited from class com.prosysopc.ua.server.nodes.ServerNode |
addComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, hashCode, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChain |
| Methods inherited from interface com.prosysopc.ua.nodes.UaNode |
addComponent, addProperty, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getBrowseName, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeId, getNodeVersion, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setBrowseName, setDescription, setDisplayName, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute |
UaReferenceTypeNode
public UaReferenceTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
- Initialize a new non-abstract, symmetric reference type.
- Parameters:
nodeId - browseName - displayName -
UaReferenceTypeNode
public UaReferenceTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String browseName,
Locale locale)
- Initialize a new non-abstract, symmetric reference type.
- Parameters:
nodeId - browseName - locale -
getAttributes
public org.opcfoundation.ua.core.NodeAttributes getAttributes()
- Specified by:
getAttributes in interface UaNode- Specified by:
getAttributes in class BaseNode
- Returns:
- the current attribute values of the node in a NodeAttributes structure.
getInverseName
public org.opcfoundation.ua.builtintypes.LocalizedText getInverseName()
- Description copied from interface:
UaReferenceType
- The inverse name of the Reference, i.e. the meaning of the ReferenceType as seen from the
TargetNode.
- Specified by:
getInverseName in interface UaReferenceType
- Returns:
- the current value of InverseName
getNodeClass
public final org.opcfoundation.ua.core.NodeClass getNodeClass()
- Description copied from interface:
UaNode
- The NodeClass Attribute identifies the NodeClass of a Node.
- Specified by:
getNodeClass in interface UaNode- Overrides:
getNodeClass in class BaseNode
- Returns:
- the Node Class of the node. This is hard-coded and cannot be changed.
getSymmetric
public Boolean getSymmetric()
- Description copied from interface:
UaReferenceType
- A boolean Attribute with the following values:
true
| the meaning of the ReferenceType is the same as seen from both the SourceNode and the
TargetNode.
|
false
| the meaning of the ReferenceType as seen from the TargetNode is the inverse of that as seen
from the SourceNode.
|
- Specified by:
getSymmetric in interface UaReferenceType
- Returns:
- the current value of Symmetric
setAttributes
public void setAttributes(org.opcfoundation.ua.core.NodeAttributes nodeAttributes)
- Specified by:
setAttributes in interface UaNode- Overrides:
setAttributes in class BaseNode
setInverseName
public void setInverseName(org.opcfoundation.ua.builtintypes.LocalizedText inverseName)
- Specified by:
setInverseName in interface UaReferenceType
- Parameters:
inverseName - the InverseName to set- See Also:
UaReferenceType.getInverseName()
setSymmetric
public void setSymmetric(Boolean symmetric)
- Specified by:
setSymmetric in interface UaReferenceType
- Parameters:
symmetric - the value of Symmetric to set- See Also:
UaReferenceType.getSymmetric()
toString
public String toString()
- Overrides:
toString in class UaTypeNode
getAttributes
protected org.opcfoundation.ua.core.ReferenceTypeAttributes getAttributes(org.opcfoundation.ua.core.ReferenceTypeAttributes attributes)
initSupportedAttributes
protected void initSupportedAttributes(List<org.opcfoundation.ua.builtintypes.UnsignedInteger> l)
- Overrides:
initSupportedAttributes in class UaTypeNode
readAttributeValue
protected void readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
- Description copied from class:
BaseNode
- Read the value of an attribute.
- Overrides:
readAttributeValue in class UaTypeNode
- Parameters:
attributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.
- Throws:
StatusException
writeAttributeValue
protected void writeAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
Object value,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DateTime sourceTime,
org.opcfoundation.ua.builtintypes.UnsignedShort sourcePicoseconds)
throws StatusException
- Overrides:
writeAttributeValue in class UaTypeNode
- Throws:
StatusException
Copyright © 2018. All rights reserved.