23 #include "control_thread.h" 24 #include "eclipse_thread.h" 25 #include <core/exception.h> 26 #include <interfaces/TestInterface.h> 41 :
Thread(
"AgentControlThread",
Thread::OPMODE_WAITFORWAKEUP ),
43 m_eclipse_thread( eclipse_thread )
83 m_eclipse_thread->
post_event(
"check_debug_msg" );
98 m_test_iface->
write();
virtual void loop()
Code to execute in the thread.
bool msgq_empty()
Check if queue is empty.
Fawkes library namespace.
virtual ~AgentControlThread()
Destructor.
AgentControlThread(EclipseAgentThread *eclipse_thread)
Constructor.
virtual bool prepare_finalize_user()
Prepare finalization user implementation.
Thread class encapsulation of pthreads.
void write()
Write from local copy into BlackBoard memory.
int32_t addend() const
Get addend value.
virtual void finalize()
Finalize the thread.
void post_event(const char *)
Post an event to the ECLiPSe context.
Thread aspect to use blocked timing.
void msgq_pop()
Erase first message from queue.
Message * msgq_first()
Get the first message from the message queue.
EclipseDebuggerInterface Fawkes BlackBoard Interface.
bool has_writer() const
Check if there is a writer for the interface.
CalculateMessage Fawkes BlackBoard Interface Message.
bool msgq_first_is()
Check if first message has desired type.
virtual void init()
Initialize the thread.
This thread creates an ECLiPSe context in which the ECLiPSe interpreter and the program are loaded...
int32_t summand() const
Get summand value.
virtual Interface * open_for_reading(const char *interface_type, const char *identifier, const char *owner=NULL)=0
Open interface for reading.
void set_result(const int32_t new_result)
Set result value.
virtual Interface * open_for_writing(const char *interface_type, const char *identifier, const char *owner=NULL)=0
Open interface for writing.
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.