ot::OldOTNetworkSourceModule Class Reference
[Network Classes]

#include <OldOTNetworkSourceModule.h>

Inheritance diagram for ot::OldOTNetworkSourceModule:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

The module and factory to drive the reception of network state updates. It builds NetworkSource nodes that insert data from the network into the tracker tree. It uses the Flexible Network Protocol from the studierstube. It uses its a thread per multicast group to receive data.

Author:
Gerhard Reitmayr


Public Member Functions

 OldOTNetworkSourceModule ()
virtual ~OldOTNetworkSourceModule ()
virtual NodecreateNode (const std::string &name, StringTable &attributes)
virtual void start ()
virtual void close ()
virtual void pushEvent ()

Static Protected Member Functions

static void convertFloatsNToHl (float *floats, float *result, int num)
static void run (void *data)

Protected Attributes

ACE_Thread_Manager * manager
 ACE Thread manager.
ReceiverVector groups
 list of groups to listen for


Constructor & Destructor Documentation

ot::OldOTNetworkSourceModule::OldOTNetworkSourceModule  ) 
 

basic constructor

ot::OldOTNetworkSourceModule::~OldOTNetworkSourceModule  )  [virtual]
 

destructor


Member Function Documentation

void ot::OldOTNetworkSourceModule::close  )  [virtual]
 

closes the module and closes any communication sockets and stops thread.

Reimplemented from ot::Module.

void ot::OldOTNetworkSourceModule::convertFloatsNToHl float *  floats,
float *  result,
int  num
[static, protected]
 

Converts num floats from network byte order.

Parameters:
floats pointer to source data
result pointer to result array
num number of floats to convert

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

This method is called to construct a new Node. It compares name to the NetworkSource element name, and if it matches creates a new NetworkSource node.

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

Implements ot::NodeFactory.

void ot::OldOTNetworkSourceModule::pushEvent  )  [virtual]
 

pushes state information into the tree. It checks whether there is new data for any NetworkSource node, copies it into the nodes and calls push on them.

Reimplemented from ot::Module.

void ot::OldOTNetworkSourceModule::run void *  data  )  [static, protected]
 

the work method for the module thread. This is executed by the new module thread. In this class it does nothing but subclasses should override it to add their implementation.

void ot::OldOTNetworkSourceModule::start  )  [virtual]
 

opens the sockets needed for communication and starts the receive thread. It is called after initialisation is done.

Reimplemented from ot::Module.


Member Data Documentation

ReceiverVector ot::OldOTNetworkSourceModule::groups [protected]
 

list of groups to listen for

ACE_Thread_Manager* ot::OldOTNetworkSourceModule::manager [protected]
 

ACE Thread manager.


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:33:38 2007 for NaviTrack by  doxygen 1.4.6