cern::laser::test::SimpleChildrenListManager Class Reference

Inheritance diagram for cern::laser::test::SimpleChildrenListManager:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::test::SimpleChildrenListManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Comparator getComparator ()
void initChildrenList (NodeList nodeList)

Static Public Attributes

static final String BEAN_NAME_PREFIX = "bean-"

Static Protected Attributes

static final int NUMBER_OF_CHILDREN = 3

Member Function Documentation

Comparator cern::laser::test::SimpleChildrenListManager::getComparator (  )  [inline]

Returns a comparator that can be used to sort the collection of nodes managed by this class. null can be returned to specify that the collection should not be sorted. If a comparator is returned it should be able to compare two nodes belonging to the children managed by this manager. An adapter can be used to deal with the bean associated to the node instead of the nodes itself.

Returns:
a comparator for the node or null
See also:
BeanComparatorAdapter

Implements cern::gp::nodes::children::ChildrenManager.

void cern::laser::test::SimpleChildrenListManager::initChildrenList ( NodeList  nodeList  )  [inline]

simple implementation of ChildrenListManager.initChildrenList() This method is called by the GP explorer when the parent node in the tree is opened. It creates NUMBER_OF_CHILDREN children and adds them to nodeList. Each of the children have again a SimpleChildrenListManager objects that creates their own children.

Parameters:
nodeList the list of nodes to be initialized

Implements cern::gp::nodes::children::ChildrenListManager.

References cern::gp::nodes::children::NodeList::addNode(), BEAN_NAME_PREFIX, and NUMBER_OF_CHILDREN.


Member Data Documentation

Referenced by initChildrenList().

Referenced by initChildrenList().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2