OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::MulticastInputModule Class Reference
[Device Input Classes]

The module and factory to drive the ARTDataTrackersource nodes. More...

#include <MulticastInputModule.h>

Inheritance diagram for ot::MulticastInputModule:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef ot::MulticastInputModule::StationRecord StationRecord

Public Member Functions

 MulticastInputModule ()
virtual ~MulticastInputModule ()
virtual NodecreateNode (const std::string &name, StringTable &attributes)
virtual void start ()
virtual void close ()
virtual void pushEvent ()
virtual void init (StringTable &attributes, ConfigNode *localTree)
void parseString (std::string input, StationRecord *recordTemp)

Public Attributes

int version
int maxBodyNumber
int receiveBufferSize
char * receiveBuffer

Protected Member Functions

void run ()

Protected Attributes

NodeVector sources
int port
int stop
ACE_SOCK_Dgram * socket

Classes

struct  StationRecord

Detailed Description

The module and factory to drive the ARTDataTrackersource nodes.

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

Author:
Christopher Schmidt

Definition at line 94 of file MulticastInputModule.h.


Member Typedef Documentation


Constructor & Destructor Documentation

ot::MulticastInputModule::MulticastInputModule (  ) 

constructor method.

Definition at line 73 of file MulticastInputModule.cxx.

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

Destructor method, clears nodes member.

Definition at line 81 of file MulticastInputModule.cxx.

References sources.


Member Function Documentation

void ot::MulticastInputModule::close (  )  [virtual]

Close.

Reimplemented from ot::ThreadModule.

Definition at line 133 of file MulticastInputModule.cxx.

References ot::ThreadModule::lock(), ot::Module::stop(), and ot::ThreadModule::unlock().

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

This method is called to construct a new Node.

It compares name to the ARTDataTrackerSource element name, and if it matches creates a new ARTDataTrackerSource 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.

Definition at line 89 of file MulticastInputModule.cxx.

References ot::StringTable::get(), sources, and ot::Module::stop().

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

initializes the MulticastInputModule.

Parameters:
attributes StringMap 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 370 of file MulticastInputModule.cxx.

References ot::StringTable::get(), ot::Module::init(), and port.

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

pushes events into the tracker tree.

Checks all source nodes for new events and pushes them into the tracker tree.

Reimplemented from ot::Module.

Definition at line 348 of file MulticastInputModule.cxx.

References ot::Module::isInitialized(), ot::ThreadModule::lock(), sources, and ot::ThreadModule::unlock().

void ot::MulticastInputModule::start (  )  [virtual]

This method is called after initialisation is finished and before the main loop is started.

Reimplemented from ot::ThreadModule.

Definition at line 124 of file MulticastInputModule.cxx.

References ot::Module::isInitialized(), sources, and ot::ThreadModule::start().


Member Data Documentation

port number

Definition at line 103 of file MulticastInputModule.h.

Referenced by init(), and run().

Definition at line 133 of file MulticastInputModule.h.

Referenced by run().

Definition at line 132 of file MulticastInputModule.h.

Referenced by run().

ACE_SOCK_Dgram* ot::MulticastInputModule::socket [protected]

pointer to socket class

Definition at line 107 of file MulticastInputModule.h.

Referenced by run().

list of ARTDataTrackerSource nodes in the tree

Definition at line 101 of file MulticastInputModule.h.

Referenced by createNode(), pushEvent(), run(), start(), and ~MulticastInputModule().

stop flag

Definition at line 105 of file MulticastInputModule.h.

Definition at line 130 of file MulticastInputModule.h.

Referenced by parseString().


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

copyright (c) 2006 Graz University of Technology