com.prosysopc.ua.client.nodes
Class UaReferenceTypeImpl

java.lang.Object
  extended by com.prosysopc.ua.nodes.AbstractUaNode
      extended by com.prosysopc.ua.client.nodes.UaNodeImpl
          extended by com.prosysopc.ua.client.nodes.UaTypeImpl
              extended by com.prosysopc.ua.client.nodes.UaReferenceTypeImpl
All Implemented Interfaces:
UaNode, UaReferenceType, UaType

public class UaReferenceTypeImpl
extends UaTypeImpl
implements UaReferenceType

Straight forward implementation of UaReferenceType.

It keeps all attributes in memory.


Field Summary
 
Fields inherited from class com.prosysopc.ua.client.nodes.UaTypeImpl
javaClass
 
Fields inherited from class com.prosysopc.ua.client.nodes.UaNodeImpl
addressSpace, logger, references, supportedAttributesMap
 
Constructor Summary
UaReferenceTypeImpl(AddressSpace addressSpace, 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.
UaReferenceTypeImpl(AddressSpace addressSpace, org.opcfoundation.ua.builtintypes.NodeId nodeId, org.opcfoundation.ua.builtintypes.QualifiedName browseName, org.opcfoundation.ua.builtintypes.LocalizedText displayName, org.opcfoundation.ua.builtintypes.LocalizedText inverseName)
          Initialize a reference type with InverseName.
UaReferenceTypeImpl(AddressSpace addressSpace, org.opcfoundation.ua.builtintypes.NodeId nodeId, org.opcfoundation.ua.builtintypes.QualifiedName browseName, org.opcfoundation.ua.builtintypes.LocalizedText displayName, org.opcfoundation.ua.builtintypes.LocalizedText description, EnumSet<WriteAccess> writeMask, EnumSet<WriteAccess> userWriteMask, UaClientReference[] references, UaProperty[] properties, Boolean isAbstract, Boolean symmetric, org.opcfoundation.ua.builtintypes.LocalizedText inverseName)
          Initialize a new reference type.
UaReferenceTypeImpl(AddressSpace addressSpace, org.opcfoundation.ua.builtintypes.NodeId nodeId, String browseName, Locale locale)
           
UaReferenceTypeImpl(AddressSpace addressSpace, org.opcfoundation.ua.builtintypes.NodeId nodeId, String browseName, String inverseName, Locale locale)
           
 
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.ReferenceTypeAttributes referenceTypeAttributes)
           
 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.client.nodes.UaTypeImpl
addSubType, getIsAbstract, getJavaClass, getSuperType, hasSuperType, inheritsFrom, inheritsFrom, setIsAbstract, setJavaClass, setSuperType
 
Methods inherited from class com.prosysopc.ua.client.nodes.UaNodeImpl
addComponent, addProperties, addProperty, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, assertTypeSupport, assertTypeSupport, beforeAddReference, deleteReference, deleteReference, deleteReference, deleteReference, deleteReferences, doAddProperty, equals, findPlaceholders, getAddressSpace, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeId, getNodeVersion, getNodeVersionString, getProperties, getProperty, getPropertyValue, getReference, getReferenceList, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hashCode, hasProperty, hasTypeDefinition, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, referenceTypeInherits, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute
 
Methods inherited from class com.prosysopc.ua.nodes.AbstractUaNode
getForwardReferences, getInverseReferences, getReferences, getReferences, getReferencesAsList, referenceTypeInherits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.prosysopc.ua.nodes.UaType
addSubType, getIsAbstract, getJavaClass, getSuperType, hasSuperType, inheritsFrom, inheritsFrom, setIsAbstract, setJavaClass, setSuperType
 
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, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute
 

Constructor Detail

UaReferenceTypeImpl

public UaReferenceTypeImpl(AddressSpace addressSpace,
                           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 -

UaReferenceTypeImpl

public UaReferenceTypeImpl(AddressSpace addressSpace,
                           org.opcfoundation.ua.builtintypes.NodeId nodeId,
                           org.opcfoundation.ua.builtintypes.QualifiedName browseName,
                           org.opcfoundation.ua.builtintypes.LocalizedText displayName,
                           org.opcfoundation.ua.builtintypes.LocalizedText inverseName)
Initialize a reference type with InverseName. The type will not be abstract nor symmetric.

Parameters:
nodeId -
browseName -
displayName -
inverseName -

UaReferenceTypeImpl

public UaReferenceTypeImpl(AddressSpace addressSpace,
                           org.opcfoundation.ua.builtintypes.NodeId nodeId,
                           org.opcfoundation.ua.builtintypes.QualifiedName browseName,
                           org.opcfoundation.ua.builtintypes.LocalizedText displayName,
                           org.opcfoundation.ua.builtintypes.LocalizedText description,
                           EnumSet<WriteAccess> writeMask,
                           EnumSet<WriteAccess> userWriteMask,
                           UaClientReference[] references,
                           UaProperty[] properties,
                           Boolean isAbstract,
                           Boolean symmetric,
                           org.opcfoundation.ua.builtintypes.LocalizedText inverseName)
Initialize a new reference type.

Parameters:
nodeId -
browseName -
displayName -
description -
writeMask -
userWriteMask -
references -
isAbstract -
symmetric -
inverseName -

UaReferenceTypeImpl

public UaReferenceTypeImpl(AddressSpace addressSpace,
                           org.opcfoundation.ua.builtintypes.NodeId nodeId,
                           String browseName,
                           Locale locale)
Parameters:
nodeId -
browseName -
locale -

UaReferenceTypeImpl

public UaReferenceTypeImpl(AddressSpace addressSpace,
                           org.opcfoundation.ua.builtintypes.NodeId nodeId,
                           String browseName,
                           String inverseName,
                           Locale locale)
Parameters:
nodeId -
browseName -
inverseName -
locale -
Method Detail

getAttributes

public org.opcfoundation.ua.core.NodeAttributes getAttributes()
Specified by:
getAttributes in interface UaNode
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 UaNodeImpl
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.ReferenceTypeAttributes referenceTypeAttributes)

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 UaTypeImpl

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 UaTypeImpl

readAttributeValue

protected void readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
                                  org.opcfoundation.ua.builtintypes.DataValue dataValue)
                           throws StatusException
Description copied from class: UaNodeImpl
Read the value of an attribute.

Overrides:
readAttributeValue in class UaTypeImpl
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 UaTypeImpl
Throws:
StatusException


Copyright © 2018. All rights reserved.