com.prosysopc.ua.server
Class NodeMapUaNode

java.lang.Object
  extended by com.prosysopc.ua.NodeMap
      extended by com.prosysopc.ua.server.NodeMapUaNode

public class NodeMapUaNode
extends NodeMap

Server side implementation of the node map, which is used to keep and provide node objects per NodeId.


Field Summary
 
Fields inherited from class com.prosysopc.ua.NodeMap
defaultLocale, nodeFactory
 
Constructor Summary
NodeMapUaNode(UaNodeFactory nodeFactory)
          Create the NodeMap with a default map, which is ConcurrentSkipListMap.
NodeMapUaNode(UaNodeFactory nodeFactory, Map<org.opcfoundation.ua.builtintypes.NodeId,UaNode> map)
           
 
Method Summary
 UaNode addNode(UaNode node)
           
 void clear()
          Clear the node map of all entries.
 Map<org.opcfoundation.ua.builtintypes.NodeId,UaNode> getMap()
          Returns the internal map.
 UaNode getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
           
 boolean hasNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
          Check if the map contains a node with the specified NodeId.
 UaNode remove(org.opcfoundation.ua.builtintypes.NodeId nodeId)
          Remove a node from the node map.
 
Methods inherited from class com.prosysopc.ua.NodeMap
addType, addType, getNodeFactory, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeMapUaNode

public NodeMapUaNode(UaNodeFactory nodeFactory)
Create the NodeMap with a default map, which is ConcurrentSkipListMap. It will keep the nodes in NodeId order.

Parameters:
nodeFactory -

NodeMapUaNode

public NodeMapUaNode(UaNodeFactory nodeFactory,
                     Map<org.opcfoundation.ua.builtintypes.NodeId,UaNode> map)
Method Detail

addNode

public UaNode addNode(UaNode node)
Specified by:
addNode in class NodeMap

clear

public void clear()
Description copied from class: NodeMap
Clear the node map of all entries.

Specified by:
clear in class NodeMap

getMap

public Map<org.opcfoundation.ua.builtintypes.NodeId,UaNode> getMap()
Returns the internal map.

Returns:
the internal map

getNode

public UaNode getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Specified by:
getNode in class NodeMap

hasNode

public boolean hasNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Description copied from class: NodeMap
Check if the map contains a node with the specified NodeId.

Specified by:
hasNode in class NodeMap
Parameters:
nodeId - the ID to check
Returns:
true, if the map contains a node with ID

remove

public UaNode remove(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Description copied from class: NodeMap
Remove a node from the node map.

Specified by:
remove in class NodeMap
Parameters:
nodeId - the node to remove.
Returns:
the node that was removed or null, if it was not in the map.


Copyright © 2018. All rights reserved.