OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::DwarfModule Class Reference
[Network Classes]

The module and factory to drive the test source nodes. More...

#include <DwarfModule.h>

Inheritance diagram for ot::DwarfModule:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DwarfModule ()
virtual ~DwarfModule ()
virtual void init (StringTable &attributes, ConfigNode *localTree)
virtual NodecreateNode (const std::string &name, StringTable &attributes)
virtual void pushEvent ()
virtual void pullEvent ()

Protected Attributes

std::vector< DwarfSink * > sinks
std::vector< DwarfSource * > sources
std::map< std::string, std::string > thingIdMap
std::map< std::string, std::string > thingTypeMap
DWARF::PoseSenderService * service
CorbaInit * myOrbConnection

Detailed Description

The module and factory to drive the test source nodes.

It constructs TestSource nodes via the NodeFactory interface and pushes events into the tracker tree according to the nodes configuration.

Author:
Gerhard Reitmayr, Christian Sandor, Martin Bauer

Definition at line 78 of file DwarfModule.h.


Constructor & Destructor Documentation

ot::DwarfModule::DwarfModule (  )  [inline]

constructor method.

Definition at line 106 of file DwarfModule.h.

ot::DwarfModule::~DwarfModule (  )  [virtual]

Destructor method, clears nodes member.

Definition at line 68 of file DwarfModule.cxx.


Member Function Documentation

virtual Node* ot::DwarfModule::createNode ( const std::string &  name,
StringTable attributes 
) [virtual]

This method is called to ruct a new Node.

It compares name to the TestSource element name, and if it matches creates a new TestSource node.

Parameters:
name reference to string containing element name refenrence to StringMap containing attribute values
Returns:
pointer to new Node or NULL. The new Node must be allocated with new !

Implements ot::NodeFactory.

void ot::DwarfModule::init ( StringTable attributes,
ConfigNode localTree 
) [virtual]

initializes the tracker module.

This class provides an implementation that sets the initialization flag to true. Subclasses should call this method, if they override it, before doing anything else. It takes the attributes of the element configuring this module and a local tree consisting of the children of the element. This tree must be build of Nodes.

Parameters:
attributes StringTable of elements attribute values. Should be possibly , but is not for convenience.
localTree pointer to root of configuration nodes tree

Reimplemented from ot::Module.

Definition at line 72 of file DwarfModule.cxx.

References ot::StringTable::containsKey(), ot::ConfigNode::countChildren(), ot::StringTable::get(), ot::ConfigNode::getChild(), ot::Module::init(), myOrbConnection, service, thingIdMap, and thingTypeMap.

void ot::DwarfModule::pullEvent (  )  [virtual]

pulls event information out of the tracker tree.

It enables the module to query any EventQueue or TimeDependend node in the shared memory. It is called after pushEvent was executed on each module.

Reimplemented from ot::Module.

Definition at line 199 of file DwarfModule.cxx.

References service, and sinks.

void ot::DwarfModule::pushEvent (  )  [virtual]

pushes events into the tracker tree.

Checks all TestSources and pushes new events, if a TestSource fires.

Reimplemented from ot::Module.

Definition at line 194 of file DwarfModule.cxx.


Member Data Documentation

CorbaInit* ot::DwarfModule::myOrbConnection [protected]

corba initialization, should be a singleton

Definition at line 101 of file DwarfModule.h.

Referenced by init().

DWARF::PoseSenderService* ot::DwarfModule::service [protected]

encapsulates all PoseData abilities of the service

Definition at line 98 of file DwarfModule.h.

Referenced by init(), and pullEvent().

std::vector<DwarfSink *> ot::DwarfModule::sinks [protected]

list of DwarfSinks in the OpenTracker graph

Definition at line 83 of file DwarfModule.h.

Referenced by pullEvent().

std::vector<DwarfSource *> ot::DwarfModule::sources [protected]

list of DwarfSources in the OpenTracker graph

Definition at line 85 of file DwarfModule.h.

std::map<std::string, std::string> ot::DwarfModule::thingIdMap [protected]

maps ability name to ThingId to store information.

Will be obsolete, if ThingId becomes an attribute.

Definition at line 90 of file DwarfModule.h.

Referenced by init().

std::map<std::string, std::string> ot::DwarfModule::thingTypeMap [protected]

maps ability name to ThingType to store information.

Will be obsolete, if ThingType becomes an attribute.

Definition at line 95 of file DwarfModule.h.

Referenced by init().


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

copyright (c) 2006 Graz University of Technology