|
||||||||||
| 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.UaInstanceNode
com.prosysopc.ua.server.nodes.UaObjectNode
public class UaObjectNode
Straight forward implementation of UaObject.
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 | |
|---|---|
UaObjectNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
Create a new object node |
|
UaObjectNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
Create a new object node with name. |
|
| Method Summary | |
|---|---|
void |
addCallListener(CallableListener listener)
|
Object[] |
callMethod(org.opcfoundation.ua.builtintypes.NodeId methodId,
Object... inputArgs)
Call a method on the object. |
org.opcfoundation.ua.builtintypes.Variant[] |
callMethod(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId methodId,
org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos)
Fallback implementation when no subtype handles the method call. |
protected void |
deleteIfNodeExists(org.opcfoundation.ua.builtintypes.NodeId nodeID)
|
org.opcfoundation.ua.core.NodeAttributes |
getAttributes()
|
protected org.opcfoundation.ua.core.NodeAttributes |
getAttributes(org.opcfoundation.ua.core.ObjectAttributes attributes)
|
protected org.opcfoundation.ua.builtintypes.ExpandedNodeId |
getDefaultTypeDefinition()
|
EnumSet<EventNotifierClass> |
getEventNotifier()
Defines whether the node can be used to subscribe to events. |
UaProperty |
getIcon()
The Icon Property provides an image that can be used by clients when displaying the Node. |
org.opcfoundation.ua.core.NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node. |
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 |
removeCallListener(CallableListener listener)
|
void |
setAttributes(org.opcfoundation.ua.core.NodeAttributes nodeAttributes)
|
void |
setEventNotifier(EnumSet<EventNotifierClass> eventNotifier)
Define which kind of events the object generates. |
void |
setIcon(UaProperty icon)
Set the value of the Icon 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.server.nodes.UaInstanceNode |
|---|
addModellingRule, beforeAddReference, getTypeDefinition, getTypeDefinitionId, hasTypeDefinition, registerOverridePlainMethod, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionId, supportsTypeDefinitionNode |
| 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 |
| Methods inherited from interface com.prosysopc.ua.nodes.UaInstance |
|---|
getTypeDefinition, getTypeDefinitionId, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionId |
| Constructor Detail |
|---|
public UaObjectNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
nodeId - The node identifierbrowseName - The BrowseName of the nodedisplayName - The DisplayName of the node
public UaObjectNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
nodeId - The node identifiername - The browse and display name of the object. The NamespaceIndex of the nodeId is also
used for the BrowseName.locale - The locale of the name, used for the DisplayName| Method Detail |
|---|
public void addCallListener(CallableListener listener)
addCallListener in interface UaCallable
public Object[] callMethod(org.opcfoundation.ua.builtintypes.NodeId methodId,
Object... inputArgs)
throws StatusException
callMethod in interface UaObjectmethodId - id of the methodinputArgs - input arguments for the method call
StatusException - if the call fails due to invalid arguments or
something like that.
public org.opcfoundation.ua.builtintypes.Variant[] callMethod(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId methodId,
org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos)
throws StatusException
callMethod in interface UaCallableStatusExceptionpublic org.opcfoundation.ua.core.NodeAttributes getAttributes()
getAttributes in interface UaNodegetAttributes in class BaseNodepublic EnumSet<EventNotifierClass> getEventNotifier()
UaObject| 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 UaObjectpublic UaProperty getIcon()
UaObject
getIcon in interface UaObjectpublic final org.opcfoundation.ua.core.NodeClass getNodeClass()
UaNode
getNodeClass in interface UaNodegetNodeClass in class BaseNodepublic void removeCallListener(CallableListener listener)
removeCallListener in interface UaCallablepublic void setAttributes(org.opcfoundation.ua.core.NodeAttributes nodeAttributes)
setAttributes in interface UaNodesetAttributes in class BaseNodepublic void setEventNotifier(EnumSet<EventNotifierClass> eventNotifier)
UaObject
setEventNotifier in interface UaObjecteventNotifier - the set of event types that the object generates
public void setIcon(UaProperty icon)
throws StatusException
UaObject
setIcon in interface UaObjecticon - the Icon to set
StatusExceptionUaObject.getIcon()public String toString()
toString in class UaInstanceNodeprotected void deleteIfNodeExists(org.opcfoundation.ua.builtintypes.NodeId nodeID)
protected org.opcfoundation.ua.core.NodeAttributes getAttributes(org.opcfoundation.ua.core.ObjectAttributes attributes)
protected org.opcfoundation.ua.builtintypes.ExpandedNodeId getDefaultTypeDefinition()
getDefaultTypeDefinition in class UaInstanceNodeprotected 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 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 | |||||||||