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:


Public Types | |
| typedef ot::MulticastInputModule::StationRecord | StationRecord |
Public Member Functions | |
| MulticastInputModule () | |
| virtual | ~MulticastInputModule () |
| virtual Node * | createNode (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 | ( | ) |
| 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
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::parseString | ( | std::string | input, | |
| StationRecord * | recordTemp | |||
| ) |
Definition at line 238 of file MulticastInputModule.cxx.
References ot::MulticastInputModule::StationRecord::buttons, ot::MulticastInputModule::StationRecord::confidence, ot::MulticastInputModule::StationRecord::id, ot::MulticastInputModule::StationRecord::orientation, ot::MulticastInputModule::StationRecord::position, and version.
Referenced by run().
| 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::run | ( | ) | [protected, virtual] |
Mainloop.
Reimplemented from ot::ThreadModule.
Definition at line 142 of file MulticastInputModule.cxx.
References ot::MulticastInputModule::StationRecord::confidence, ot::MathUtils::eulerToQuaternion(), ot::ThreadModule::lock(), parseString(), port, ot::MulticastInputModule::StationRecord::position, receiveBuffer, receiveBufferSize, socket, sources, ot::Module::stop(), 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
Definition at line 131 of file MulticastInputModule.h.
int ot::MulticastInputModule::port [protected] |
ACE_SOCK_Dgram* ot::MulticastInputModule::socket [protected] |
NodeVector ot::MulticastInputModule::sources [protected] |
list of ARTDataTrackerSource nodes in the tree
Definition at line 101 of file MulticastInputModule.h.
Referenced by createNode(), pushEvent(), run(), start(), and ~MulticastInputModule().
int ot::MulticastInputModule::stop [protected] |
The documentation for this class was generated from the following files: