|
||||||||||
| 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.server.nodes.ServerNode
com.prosysopc.ua.server.nodes.BaseNode
com.prosysopc.ua.server.nodes.UaViewNode
public class UaViewNode
Straight forward implementation of UaView.
It keeps all attributes in memory.
| Field Summary |
|---|
| Fields inherited from class com.prosysopc.ua.server.nodes.BaseNode |
|---|
NODE_VERSION_PROPERTY_NAME |
| Fields inherited from class com.prosysopc.ua.server.nodes.ServerNode |
|---|
eventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap |
| Constructor Summary | |
|---|---|
UaViewNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
|
UaViewNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
|
|
| Method Summary | |
|---|---|
UaReference |
addProperty(UaProperty property)
Add a new property node to the node. |
protected boolean |
beforeAddReference(UaReference reference)
|
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.NodeAttributes nodeAttributes)
|
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, referenceTypeInherits |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UaViewNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
public UaViewNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
| Method Detail |
|---|
public UaReference addProperty(UaProperty property)
UaNodeAdds a new forward HasProperty reference with target to the property node.
addProperty in interface UaNodeaddProperty in class ServerNodeproperty - the property to add to the node
public org.opcfoundation.ua.core.NodeAttributes getAttributes()
getAttributes in interface UaNodegetAttributes in class BaseNodepublic 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 BaseNodepublic UaProperty getViewVersion()
UaView
getViewVersion in interface UaViewpublic void setAttributes(org.opcfoundation.ua.core.NodeAttributes nodeAttributes)
setAttributes in interface UaNodesetAttributes in class BaseNodepublic 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 BaseNodeprotected boolean beforeAddReference(UaReference reference)
beforeAddReference in class ServerNodeprotected 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 ServerNode
protected void readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
BaseNode
readAttributeValue in class BaseNodeattributeId - 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 BaseNodeStatusException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||