|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.nodes.AbstractUaNode
com.prosysopc.ua.client.nodes.UaNodeImpl
com.prosysopc.ua.client.nodes.UaViewImpl
public class UaViewImpl
Straight forward implementation of UaView.
It keeps all attributes in memory.
| Field Summary |
|---|
| Fields inherited from class com.prosysopc.ua.client.nodes.UaNodeImpl |
|---|
addressSpace, logger, references, supportedAttributesMap |
| Constructor Summary | |
|---|---|
UaViewImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
|
UaViewImpl(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 containsNoLoops,
EnumSet<EventNotifierClass> eventNotifier)
|
|
| Method Summary | |
|---|---|
org.opcfoundation.ua.core.NodeAttributes |
getAttributes()
|
protected org.opcfoundation.ua.core.NodeAttributes |
getAttributes(org.opcfoundation.ua.core.ViewAttributes attributes)
|
Boolean |
getContainsNoLoops()
If set to true this Attribute indicates that following References in the context
of the View contains no loops, i.e. starting from a Node 'A' contained in the View and
following the forward References in the context of the View Node 'A' will not be reached again. |
EnumSet<EventNotifierClass> |
getEventNotifier()
Defines whether the node can be used to subscribe to events. |
org.opcfoundation.ua.core.NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node. |
UaProperty |
getViewVersion()
The version number for the View. |
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.ViewAttributes viewAttributes)
|
void |
setContainsNoLoops(Boolean containsNoLoops)
|
void |
setEventNotifier(EnumSet<EventNotifierClass> eventNotifier)
|
protected void |
setViewVersion(Integer viewVersion)
Set the value of the ViewVersion property. |
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.nodes.AbstractUaNode |
|---|
getForwardReferences, getInverseReferences, getReferences, getReferences, getReferencesAsList, referenceTypeInherits |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UaViewImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
public UaViewImpl(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 containsNoLoops,
EnumSet<EventNotifierClass> eventNotifier)
| Method Detail |
|---|
public org.opcfoundation.ua.core.NodeAttributes getAttributes()
getAttributes in interface UaNodepublic Boolean getContainsNoLoops()
UaViewtrue this Attribute indicates that following References in the context
of the View contains no loops, i.e. starting from a Node 'A' contained in the View and
following the forward References in the context of the View Node 'A' will not be reached again.
It does not specify that there is only one path starting from the View Node to reach a Node
contained in the View. If set to false this Attribute indicates that following
References in the context of the View may lead to loops. (OPC UA Specification, Part 3.)
getContainsNoLoops in interface UaViewpublic EnumSet<EventNotifierClass> getEventNotifier()
UaView| Value | Description |
|---|---|
| SubscribeToEvents | Indicates if it can be used to subscribe to Events (0 means cannot be used to subscribe to Events, 1 means can be used to subscribe to Events). |
| HistoryRead | Indicates if the history of the Events is readable (0 means not readable, 1 means readable). |
| HistoryWrite | Indicates if the history of the Events is writable (0 means not writable, 1 means writable). |
getEventNotifier in interface UaViewpublic final org.opcfoundation.ua.core.NodeClass getNodeClass()
UaNode
getNodeClass in interface UaNodegetNodeClass in class UaNodeImplpublic UaProperty getViewVersion()
UaView
getViewVersion in interface UaViewpublic void setAttributes(org.opcfoundation.ua.core.ViewAttributes viewAttributes)
public void setContainsNoLoops(Boolean containsNoLoops)
setContainsNoLoops in interface UaViewcontainsNoLoops - the value of containsNoLoops to setUaView.getContainsNoLoops()public void setEventNotifier(EnumSet<EventNotifierClass> eventNotifier)
setEventNotifier in interface UaVieweventNotifier - the value of Eventnotifier to setUaView.getEventNotifier()public String toString()
toString in class UaNodeImplprotected org.opcfoundation.ua.core.NodeAttributes getAttributes(org.opcfoundation.ua.core.ViewAttributes attributes)
protected void initSupportedAttributes(List<org.opcfoundation.ua.builtintypes.UnsignedInteger> l)
initSupportedAttributes in class UaNodeImpl
protected void readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
UaNodeImpl
readAttributeValue in class UaNodeImplattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.
StatusException
protected void setViewVersion(Integer viewVersion)
throws StatusException
viewVersion -
StatusException
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
writeAttributeValue in class UaNodeImplStatusException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||