Simple demonstration for a thread using the BlackBoard. More...
#include <>>

Public Member Functions | |
| ExampleBlackBoardThread (bool reader) | |
| Constructor. | |
| virtual | ~ExampleBlackBoardThread () |
| Destructor. | |
| virtual void | finalize () |
| virtual void | init () |
| Initialize thread. | |
| virtual void | loop () |
| Thread loop. | |
Simple demonstration for a thread using the BlackBoard.
Definition at line 35 of file blackboard_thread.h.
| ExampleBlackBoardThread::ExampleBlackBoardThread | ( | bool | reader | ) |
Constructor.
| reader | set to true, to make this bb thread to open the test interface read-only, false to open it as a writer |
Definition at line 40 of file blackboard_thread.cpp.
| ExampleBlackBoardThread::~ExampleBlackBoardThread | ( | ) | [virtual] |
Destructor.
Definition at line 49 of file blackboard_thread.cpp.
| void ExampleBlackBoardThread::init | ( | ) | [virtual] |
Initialize thread.
Here, the device and the BB-interface are opened.
Definition at line 71 of file blackboard_thread.cpp.
References fawkes::Exception::append(), fawkes::BlackBoardAspect::blackboard, fawkes::Logger::log_debug(), fawkes::LoggingAspect::logger, fawkes::Thread::name(), fawkes::BlackBoard::open_for_reading(), and fawkes::BlackBoard::open_for_writing().
| void ExampleBlackBoardThread::loop | ( | ) | [virtual] |
Thread loop.
Parse messages from the interface and update values in the interface.
Definition at line 90 of file blackboard_thread.cpp.
1.7.1