#include <Node.hpp>
Definition at line 21 of file Node.hpp.
bota_node::Node::Node |
( |
| ) |
|
|
delete |
virtual bota_node::Node::~Node |
( |
| ) |
|
|
virtualdefault |
template<class T >
bool bota_node::Node::addWorker |
( |
const std::string & |
name, |
|
|
const double |
timestep, |
|
|
bool(T::*)(const bota_worker::WorkerEvent &) |
fp, |
|
|
T * |
obj, |
|
|
const int |
priority = 0 |
|
) |
| |
|
inline |
Helper functions to add Workers to the WorkerManager
Definition at line 65 of file Node.hpp.
void bota_node::Node::cancelWorker |
( |
const std::string & |
name, |
|
|
const bool |
wait = true |
|
) |
| |
|
inline |
Stop a worker managed by the WorkerManager
- Parameters
-
name | Name of the worker |
wait | Whether to wait until the worker has finished or return immediately |
Definition at line 91 of file Node.hpp.
virtual void bota_node::Node::cleanup |
( |
| ) |
|
|
pure virtual |
Cleanup function, called by Nodewrap after stopping workers. This function is called even if init() returned false.
bool bota_node::Node::hasWorker |
( |
const std::string & |
name | ) |
|
|
inline |
Check if WorkerManager is managing a Worker with given name
- Parameters
-
- Returns
- True if worker was found
Definition at line 81 of file Node.hpp.
virtual bool bota_node::Node::init |
( |
| ) |
|
|
pure virtual |
Init function, used to initialize all members and starting workers (if any).
- Returns
- True if successful. Returning false indicates that the node shall shut down.
virtual void bota_node::Node::preCleanup |
( |
| ) |
|
|
inlinevirtual |
Pre-Cleanup function, which is called by Nodewrap before stopping workers. (Thread safety up to the user!). This function is called even if init() returned false.
Definition at line 43 of file Node.hpp.
void bota_node::Node::shutdown |
( |
| ) |
|
Method to signal nodewrap to shutdown the node.
Definition at line 17 of file Node.cpp.
void bota_node::Node::stopAllWorkers |
( |
| ) |
|
|
inline |
Method to stop all workers managed by the WorkerManager
Definition at line 99 of file Node.hpp.
void bota_node::Node::stopAllWorkers |
( |
bool |
wait | ) |
|
|
inline |
The documentation for this class was generated from the following files: