24 #ifndef __BLACKBOARD_REMOTE_H_
25 #define __BLACKBOARD_REMOTE_H_
27 #include <blackboard/blackboard.h>
28 #include <netcomm/fawkes/client_handler.h>
29 #include <core/utils/lock_map.h>
30 #include <core/exceptions/software.h>
36 class FawkesNetworkClient;
37 class FawkesNetworkMessage;
41 class InterfaceInfoList;
43 class BlackBoardInstanceFactory;
44 class BlackBoardNotifier;
45 class BlackBoardInterfaceProxy;
46 class BlackBoardInterfaceListener;
47 class BlackBoardInterfaceObserver;
64 const char *id_pattern);
65 virtual bool is_alive()
const throw();
69 const char *id_pattern =
"*");
74 unsigned int id)
throw();
82 void open_interface(
const char *type,
const char *identifier,
84 Interface * open_interface(
const char *type,
const char *identifier,
bool writer);
85 void reopen_interfaces();
96 std::list<BlackBoardInterfaceProxy *> __invalid_proxies;
97 std::list<BlackBoardInterfaceProxy *>::iterator __ipit;
102 const char *__inbound_thread;
Message handler for FawkesNetworkClient.
BlackBoard instance factory.
Wait until a given condition holds.
Simple Fawkes network client.
virtual bool is_alive() const
Check if the BlackBoard is still alive.
Representation of a message that is sent over the network.
virtual void deregistered(unsigned int id)
We are no longer registered in Fawkes network client.
virtual void connection_established(unsigned int id)
Client has established a connection.
Base class for all Fawkes BlackBoard interfaces.
virtual InterfaceInfoList * list(const char *type_pattern, const char *id_pattern)
Get list of interfaces matching type and ID patterns.
Interface information list.
virtual void close(Interface *interface)
Close interface.
virtual ~RemoteBlackBoard()
Destructor.
virtual bool try_aliveness_restore()
Try to restore the aliveness of the BlackBoard instance.
virtual void inbound_received(FawkesNetworkMessage *msg, unsigned int id)
Called for incoming messages.
virtual void connection_died(unsigned int id)
Client connection died.
virtual Interface * open_for_reading(const char *interface_type, const char *identifier)
Open interface for reading.
RemoteBlackBoard(FawkesNetworkClient *client)
Constructor.
virtual InterfaceInfoList * list_all()
Get list of all currently existing interfaces.
The BlackBoard abstract class.
Mutex mutual exclusion lock.
std::list< Interface * > open_multiple_for_reading(const char *interface_type, const char *id_pattern="*")
Open multiple interfaces for reading.
virtual Interface * open_for_writing(const char *interface_type, const char *identifier)
Open interface for writing.