Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes | Static Private Attributes
jafar::ddf::SensorNodeIPC< PARAMS > Class Template Reference

Implement a sensor node communications with IPC's (message queues) create a thread that handles connections/deconnections between nodes. More...


Detailed Description

template<typename PARAMS>
class jafar::ddf::SensorNodeIPC< PARAMS >

Implement a sensor node communications with IPC's (message queues) create a thread that handles connections/deconnections between nodes.

Author:
Pierre Lamon

Definition at line 65 of file sensornodeipc.hpp.

#include <sensornodeipc.hpp>

Inheritance diagram for jafar::ddf::SensorNodeIPC< PARAMS >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SensorNodeIPC (unsigned short sv_size, time const &sync_period, PredictModelFactoryBase *pred_factory, CommFactoryBase *comm_factory, bool use_delayed)
virtual void InitNode ()
virtual void Start (time const &first_deadling)
virtual void KillNode ()
key_t GetChanMgrKey ()
bool ChanMgrAlive ()
void DbgWaitInfoFromNode (unsigned short node_id)
void SetupChanMgrComm ()
 Called by the channel manager thread.
void Listen ()
void CleanChanMgrComm ()
SN_CODE_TYPE RequestConnection (unsigned short node_id)
 Connexion function: return SN_CODE_OK or SN_CODE_ALREADY_CONNECTED.

Private Attributes

ManagerThreadFunc
< SensorNodeIPC< PARAMS > > 
m_ChanMgr_Fun
int m_msqid
bool m_chanMgr_alive
boost::thread * m_pChanMgr
boost::mutex m_msqmutex

Static Private Attributes

static const int MBOX_OFFSET = 1987

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1
LAAS-CNRS