OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

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:

Inheritance graph
[legend]
Collaboration diagram for ot::GroupGateModule:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GroupGateModule ()
virtual ~GroupGateModule ()
virtual NodecreateNode (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]

Definition at line 131 of file GroupGateModule.cxx.

References Groups, and NameList.


Member Function Documentation

void ot::GroupGateModule::activateGroupGate ( const char *  groupname,
const char *  groupgatename 
)

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
Returns:
pointer to new Node or NULL. The new Node must be allocated with new !

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  ) 

Definition at line 199 of file GroupGateModule.cxx.

References NameList.


Member Data Documentation


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

copyright (c) 2006 Graz University of Technology