|
||||||||||
| 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
public abstract class UaInstanceNode
Straight forward implementation of UaInstance.
It keeps all attributes in memory.
Note that the OPC UA Specification does not define or represent such a common "base class" for
all instance nodes. However, all instance nodes support TypeDefinition reference. In principle
UaInstance separates the instance nodes from type nodes, which implement UaType.
| 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 | |
|---|---|
UaInstanceNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
|
UaInstanceNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
|
|
| Method Summary | |
|---|---|
UaReference |
addModellingRule(ModellingRule modellingRule)
Adds a ModellingRule reference to the node. |
protected boolean |
beforeAddReference(UaReference reference)
|
protected abstract org.opcfoundation.ua.builtintypes.ExpandedNodeId |
getDefaultTypeDefinition()
|
UaType |
getTypeDefinition()
The UaType object corresponding to TypeDefinitionId. |
org.opcfoundation.ua.builtintypes.ExpandedNodeId |
getTypeDefinitionId()
Reference to the NodeId of the object's type definition. |
boolean |
hasTypeDefinition()
|
protected UaMethod |
registerOverridePlainMethod(String name)
|
void |
setTypeDefinition(UaType type)
Sets the type of the node. |
void |
setTypeDefinitionId(org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
Sets the type definition to an ExpandedNodeId. |
void |
setTypeDefinitionId(org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId)
Sets the type definition to a local NodeId. |
protected boolean |
supportsTypeDefinitionNode()
Defines that the instance supports the TypeDefinition reference to a node, i.e. setting TypeDefinitionId (which is done by default in init()), also sets the TypeDefinition which creates a UA reference. |
String |
toString()
|
| 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 UaInstanceNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
nodeId - browseName - displayName -
public UaInstanceNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
nodeId - name - locale - | Method Detail |
|---|
public UaReference addModellingRule(ModellingRule modellingRule)
modellingRule -
public UaType getTypeDefinition()
UaInstance
getTypeDefinition in interface UaInstanceUaInstance.getTypeDefinitionId(),
UaInstance.setTypeDefinition(UaType),
UaInstance.setTypeDefinitionId(NodeId),
UaInstance.setTypeDefinitionId(ExpandedNodeId)public org.opcfoundation.ua.builtintypes.ExpandedNodeId getTypeDefinitionId()
getTypeDefinitionId in interface UaInstanceUaInstance.getTypeDefinition(),
UaInstance.setTypeDefinition(UaType),
UaInstance.setTypeDefinitionId(NodeId),
UaInstance.setTypeDefinitionId(ExpandedNodeId)public boolean hasTypeDefinition()
hasTypeDefinition in class BaseNodepublic void setTypeDefinition(UaType type)
setTypeDefinition in interface UaInstancetype - UaInstance.getTypeDefinitionId(),
UaInstance.getTypeDefinition(),
UaInstance.setTypeDefinitionId(ExpandedNodeId),
UaInstance.setTypeDefinitionId(NodeId)public void setTypeDefinitionId(org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
UaInstance
setTypeDefinitionId in interface UaInstancetypeDefinitionId - the type definition Id to setUaInstance.getTypeDefinitionId(),
UaInstance.getTypeDefinition(),
UaInstance.setTypeDefinition(UaType),
UaInstance.setTypeDefinitionId(NodeId)public final void setTypeDefinitionId(org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId)
UaInstanceIf
setTypeDefinitionId in interface UaInstancetypeDefinitionId - the type definition Id to setUaInstance.getTypeDefinitionId(),
UaInstance.getTypeDefinition(),
UaInstance.setTypeDefinition(UaType),
UaInstance.setTypeDefinitionId(ExpandedNodeId)public String toString()
toString in class BaseNodeprotected boolean beforeAddReference(UaReference reference)
beforeAddReference in class ServerNodeprotected abstract org.opcfoundation.ua.builtintypes.ExpandedNodeId getDefaultTypeDefinition()
protected UaMethod registerOverridePlainMethod(String name)
name -
protected boolean supportsTypeDefinitionNode()
The events will need to disable this, for instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||