ot::GroupGateModule Class Reference
[Common Classes]
The module and factory to drive the test source nodes.
More...
#include <GroupGateModule.h>
Inheritance diagram for ot::GroupGateModule:


Public Member Functions | |
| GroupGateModule () | |
| virtual | ~GroupGateModule () |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| const char * | getGroupGateName (int groupgatenum) |
| void | activateGroupGate (const char *groupname, const char *groupgatename) |
Protected Attributes | |
| GroupMap | Groups |
| StringVec | NameList |
Detailed Description
The module and factory to drive the test source nodes.It constructs GroupGate nodes via the NodeFactory interface and pushes events into the tracker tree according to the nodes configuration.
- Author:
- Michael Knapp
Definition at line 107 of file GroupGateModule.h.
Constructor & Destructor Documentation
| ot::GroupGateModule::GroupGateModule | ( | ) | [inline] |
Definition at line 114 of file GroupGateModule.h.
| ot::GroupGateModule::~GroupGateModule | ( | ) | [virtual] |
Member Function Documentation
| void ot::GroupGateModule::activateGroupGate | ( | const char * | groupname, | |
| const char * | groupgatename | |||
| ) |
Definition at line 205 of file GroupGateModule.cxx.
References ot::GroupGateNode::activate(), ot::GroupGateGroup::deactivateAll(), ot::GroupGateGroup::getNode(), and Groups.
| Node * ot::GroupGateModule::createNode | ( | const std::string & | name, | |
| StringTable & | attributes | |||
| ) | [virtual] |
This method tries to create a new Node based on a given element type and the attributes of the element.
If it can not create a new Node ( because it doesn't know about the element type for example ), it returns NULL. This method has to be implemented by real NodeFactories.
- Parameters:
-
name reference to string containing element name attributes refenrence to StringTable containing attribute values
Implements ot::NodeFactory.
Definition at line 139 of file GroupGateModule.cxx.
References ot::GroupGateNode::addNeighbor(), ot::GroupGateGroup::addNode(), ot::StringTable::get(), Groups, LOG_ACE_ERROR(), NameList, and ot::GroupGateNode::setNumber().
| const char * ot::GroupGateModule::getGroupGateName | ( | int | groupgatenum | ) |
Member Data Documentation
GroupMap ot::GroupGateModule::Groups [protected] |
Definition at line 110 of file GroupGateModule.h.
Referenced by activateGroupGate(), createNode(), and ~GroupGateModule().
StringVec ot::GroupGateModule::NameList [protected] |
Definition at line 111 of file GroupGateModule.h.
Referenced by createNode(), getGroupGateName(), and ~GroupGateModule().
The documentation for this class was generated from the following files: