23 #include <plugins/examples/basics/blackboard_thread.h> 24 #include <interfaces/TestInterface.h> 41 :
Thread(
"ExampleBlackBoardThread",
Thread::OPMODE_WAITFORWAKEUP),
44 this->reader = reader;
81 e.
append(
"Opening test interface for writing failed");
virtual void init()
Initialize thread.
Fawkes library namespace.
virtual void loop()
Thread loop.
Thread class encapsulation of pthreads.
virtual void finalize()
Finalize the thread.
Logger * logger
This is the Logger member used to access the logger.
Thread aspect to use blocked timing.
Base class for exceptions in Fawkes.
ExampleBlackBoardThread(bool reader)
Constructor.
const char * name() const
Get name of thread.
virtual void log_error(const char *component, const char *format,...)=0
Log error message.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.
virtual Interface * open_for_reading(const char *interface_type, const char *identifier, const char *owner=NULL)=0
Open interface for reading.
virtual Interface * open_for_writing(const char *interface_type, const char *identifier, const char *owner=NULL)=0
Open interface for writing.
void append(const char *format,...)
Append messages to the message list.
virtual ~ExampleBlackBoardThread()
Destructor.
TestInterface Fawkes BlackBoard Interface.
BlackBoard * blackboard
This is the BlackBoard instance you can use to interact with the BlackBoard.
virtual void close(Interface *interface)=0
Close interface.