ot::UbisenseModule Class Reference
[Device Input Classes]
A Ubisense tracking source module using the Ubisense API to track Ubisense tags.
More...
#include <UbisenseModule.h>
Inheritance diagram for ot::UbisenseModule:


Public Member Functions | |
| UbisenseModule () | |
| virtual | ~UbisenseModule () |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| virtual void | start () |
| virtual void | close () |
| virtual void | pushEvent () |
| virtual void | init (StringTable &attributes, ConfigNode *pLocalTree) |
Protected Attributes | |
| NodeVector | pSources |
Private Attributes | |
| LocationClient | locationClient |
| WrappedDataClient | dataClient |
| UClientAPI::Set< String > | cells |
Classes | |
| class | WrappedDataClient |
Detailed Description
A Ubisense tracking source module using the Ubisense API to track Ubisense tags.It acts as a NodeFactory for UbisenseSource nodes. It also keeps a vector of the created nodes to update them.
Definition at line 89 of file UbisenseModule.h.
Constructor & Destructor Documentation
| ot::UbisenseModule::UbisenseModule | ( | ) |
| ot::UbisenseModule::~UbisenseModule | ( | ) | [virtual] |
Member Function Documentation
| void ot::UbisenseModule::close | ( | ) | [virtual] |
closes the module.
Reimplemented from ot::Module.
Definition at line 124 of file UbisenseModule.cxx.
References locationClient.
| Node * ot::UbisenseModule::createNode | ( | const std::string & | name, | |
| StringTable & | attributes | |||
| ) | [virtual] |
This method is called to construct a new Node.
It compares name to the UbisenseSource element name, and if it matches creates a new UbisenseSource node.
- Parameters:
-
name reference to string containing element name refenrence to StringMap containing attribute values
- Returns:
- pointer to new Node or NULL.
Implements ot::NodeFactory.
Definition at line 96 of file UbisenseModule.cxx.
References dataClient, ot::StringTable::get(), locationClient, and pSources.
| void ot::UbisenseModule::init | ( | StringTable & | attributes, | |
| ConfigNode * | pLocalTree | |||
| ) | [virtual] |
initializes the Ubisense module.
- Parameters:
-
attributes StringMap of elements attribute values. pLocalTree pointer to root of configuration nodes tree
Reimplemented from ot::Module.
Definition at line 139 of file UbisenseModule.cxx.
References cells, ot::ConfigNode::countChildren(), ot::StringTable::get(), and ot::ConfigNode::getChild().
| void ot::UbisenseModule::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 129 of file UbisenseModule.cxx.
References pSources.
| void ot::UbisenseModule::start | ( | ) | [virtual] |
This method is called after initialisation is finished and before the main loop is started.
Reimplemented from ot::Module.
Definition at line 114 of file UbisenseModule.cxx.
References cells, and locationClient.
Member Data Documentation
UClientAPI::Set<String> ot::UbisenseModule::cells [private] |
LocationClient ot::UbisenseModule::locationClient [private] |
NodeVector ot::UbisenseModule::pSources [protected] |
stores the sources
Definition at line 135 of file UbisenseModule.h.
Referenced by createNode(), pushEvent(), and ~UbisenseModule().
The documentation for this class was generated from the following files: