Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::gp::nodes::children::NodeMap Interface Reference

Inheritance diagram for cern::gp::nodes::children::NodeMap:

Inheritance graph
[legend]
Collaboration diagram for cern::gp::nodes::children::NodeMap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void addNode (Object key, GPNode node)
void addNode (GPNode node)
void addNodes (GPNode[] nodes)
void addNodes (Map nodesMap)
GPNode removeNode (Object key)
void removeNodes (Object[] keys)
GPNode getNode (Object key)
Set keySet ()

Detailed Description

A class implementing this interface hold a collection of nodes as a Map.

Version:
Revision
1.2
Date
2006/09/25 08:52:36
Author:
Lionel Mestre


Member Function Documentation

void cern::gp::nodes::children::NodeMap::addNode GPNode  node  ) 
 

Adds the new node to the map using the name returned by the method node.getName() as the key.

Parameters:
node the node to add to the map

Implemented in cern::gp::nodes::children::ChildrenFactory::MapChildren, and cern::gp::nodes::children::ChildrenFactory::SortedMapChildren.

void cern::gp::nodes::children::NodeMap::addNode Object  key,
GPNode  node
 

Adds the new node to the map using the given key

Parameters:
key the key of the node to add
node the node to add to the map

Implemented in cern::gp::nodes::children::ChildrenFactory::MapChildren, and cern::gp::nodes::children::ChildrenFactory::SortedMapChildren.

void cern::gp::nodes::children::NodeMap::addNodes Map  nodesMap  ) 
 

Adds all nodes in the given map to this node map. The key for each node in the given map is used as the key in this node map.

Parameters:
nodesMap the nodes to add to this map

void cern::gp::nodes::children::NodeMap::addNodes GPNode[]  nodes  ) 
 

Adds all nodes in the given array to the map using the name returned by the method node.getName() as the key for each node.

Parameters:
nodes the nodes to add to the map

Implemented in cern::gp::nodes::children::ChildrenFactory::MapChildren, and cern::gp::nodes::children::ChildrenFactory::SortedMapChildren.

GPNode cern::gp::nodes::children::NodeMap::getNode Object  key  ) 
 

Returns the node associated to the given key or null

Parameters:
key the key of the node to return
Returns:
the node associated with the key or null

Implemented in cern::gp::nodes::children::ChildrenFactory::MapChildren, and cern::gp::nodes::children::ChildrenFactory::SortedMapChildren.

Set cern::gp::nodes::children::NodeMap::keySet  ) 
 

Returns a set view of the keys contained in this map.

Returns:
a set view of the keys contained in this map.

Implemented in cern::gp::nodes::children::ChildrenFactory::MapChildren, and cern::gp::nodes::children::ChildrenFactory::SortedMapChildren.

GPNode cern::gp::nodes::children::NodeMap::removeNode Object  key  ) 
 

Removes the node associated to the given key

Parameters:
key the key of the node to remove
Returns:
the node that has been removed or null if the key did not match any node.

Implemented in cern::gp::nodes::children::ChildrenFactory::MapChildren, and cern::gp::nodes::children::ChildrenFactory::SortedMapChildren.

void cern::gp::nodes::children::NodeMap::removeNodes Object[]  keys  ) 
 

Removes all nodes associated to the given keys

Parameters:
keys the keys of the nodes to remove

Implemented in cern::gp::nodes::children::ChildrenFactory::MapChildren, and cern::gp::nodes::children::ChildrenFactory::SortedMapChildren.


The documentation for this interface was generated from the following file:
Generated on Thu Apr 30 03:08:37 2009 for ACS Java API by doxygen 1.3.8