QuonP_m.h File Reference

#include <omnetpp.h>
#include <NodeHandle.h>
#include <QuonDefs.h>
#include <QuonPRDefs.h>
#include <CommonMessages_m.h>

Go to the source code of this file.

Classes

class  QuonPSelfMessage
 Class generated from overlay/quon/QuonP.msg by opp_msgc. More...
class  QuonPMessage
 Class generated from overlay/quon/QuonP.msg by opp_msgc. More...
class  QuonPListMessage
 Class generated from overlay/quon/QuonP.msg by opp_msgc. More...
class  QuonPMoveMessage
 Class generated from overlay/quon/QuonP.msg by opp_msgc. More...
class  QuonPEventMessage
 Class generated from overlay/quon/QuonP.msg by opp_msgc. More...

Defines

#define MSGC_VERSION   0x0400
#define QUONP_L(msg)   (QUONPCOMMAND_L + NODEHANDLE_L + KEY_L + QUONPPOSITION_L + QUONPAOI_L)
#define QUONPLIST_L(msg)   (QUONP_L(msg) + QUONPENTRYCOUNT_L + msg->getNeighborHandleArraySize() * (NODEHANDLE_L + QUONPPOSITION_L))
#define QUONPMOVE_L(msg)   (QUONP_L(msg) + (msg->getNeighborHandle(0).isUnspecified() ? 0 : (NODEHANDLE_L + QUONPPOSITION_L)) + (msg->getNeighborHandle(1).isUnspecified() ? 0 : (NODEHANDLE_L + QUONPPOSITION_L)) + (msg->getNeighborHandle(2).isUnspecified() ? 0 : (NODEHANDLE_L + QUONPPOSITION_L)) + (msg->getNeighborHandle(3).isUnspecified() ? 0 : (NODEHANDLE_L + QUONPPOSITION_L)) + QUONPPOSITION_L + QUONPFLAG_L)

Enumerations

enum  QUONPCommand {
  JOIN_REQUEST = 0, JOIN_ACKNOWLEDGE = 1, NODE_MOVE = 2, NEW_NEIGHBORS = 3,
  NODE_LEAVE = 4, QUON_EVENT = 5
}
 Enum generated from overlay/quon/QuonP.msg by opp_msgc. More...

Functions

void doPacking (cCommBuffer *b, QuonPSelfMessage &obj)
void doUnpacking (cCommBuffer *b, QuonPSelfMessage &obj)
void doPacking (cCommBuffer *b, QuonPMessage &obj)
void doUnpacking (cCommBuffer *b, QuonPMessage &obj)
void doPacking (cCommBuffer *b, QuonPListMessage &obj)
void doUnpacking (cCommBuffer *b, QuonPListMessage &obj)
void doPacking (cCommBuffer *b, QuonPMoveMessage &obj)
void doUnpacking (cCommBuffer *b, QuonPMoveMessage &obj)
void doPacking (cCommBuffer *b, QuonPEventMessage &obj)
void doUnpacking (cCommBuffer *b, QuonPEventMessage &obj)

Variables

static const int QUONPCOMMAND_L = 8
static const int QUONPPOSITION_L = 128
static const int QUONPAOI_L = 64
static const int QUONPENTRYCOUNT_L = 32
static const int QUONPFLAG_L = 1


Define Documentation

#define MSGC_VERSION   0x0400

Definition at line 11 of file QuonP_m.h.

#define QUONP_L ( msg   )     (QUONPCOMMAND_L + NODEHANDLE_L + KEY_L + QUONPPOSITION_L + QUONPAOI_L)

Definition at line 30 of file QuonP_m.h.

Referenced by QuonP::handleJoin().

#define QUONPLIST_L ( msg   )     (QUONP_L(msg) + QUONPENTRYCOUNT_L + msg->getNeighborHandleArraySize() * (NODEHANDLE_L + QUONPPOSITION_L))

#define QUONPMOVE_L ( msg   )     (QUONP_L(msg) + (msg->getNeighborHandle(0).isUnspecified() ? 0 : (NODEHANDLE_L + QUONPPOSITION_L)) + (msg->getNeighborHandle(1).isUnspecified() ? 0 : (NODEHANDLE_L + QUONPPOSITION_L)) + (msg->getNeighborHandle(2).isUnspecified() ? 0 : (NODEHANDLE_L + QUONPPOSITION_L)) + (msg->getNeighborHandle(3).isUnspecified() ? 0 : (NODEHANDLE_L + QUONPPOSITION_L)) + QUONPPOSITION_L + QUONPFLAG_L)


Enumeration Type Documentation

Enum generated from overlay/quon/QuonP.msg by opp_msgc.

 enum QUONPCommand
 {
     JOIN_REQUEST = 0;
     JOIN_ACKNOWLEDGE = 1;
     NODE_MOVE = 2;
     NEW_NEIGHBORS = 3;
     NODE_LEAVE = 4;
     QUON_EVENT = 5;
 }
 
Enumerator:
JOIN_REQUEST 
JOIN_ACKNOWLEDGE 
NODE_MOVE 
NEW_NEIGHBORS 
NODE_LEAVE 
QUON_EVENT 

Definition at line 51 of file QuonP_m.h.

00051                   {
00052     JOIN_REQUEST = 0,
00053     JOIN_ACKNOWLEDGE = 1,
00054     NODE_MOVE = 2,
00055     NEW_NEIGHBORS = 3,
00056     NODE_LEAVE = 4,
00057     QUON_EVENT = 5
00058 };


Function Documentation

void doPacking ( cCommBuffer *  b,
QuonPEventMessage &  obj 
) [inline]

Definition at line 267 of file QuonP_m.h.

00267 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
QuonPMoveMessage &  obj 
) [inline]

Definition at line 237 of file QuonP_m.h.

00237 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
QuonPListMessage &  obj 
) [inline]

Definition at line 186 of file QuonP_m.h.

00186 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
QuonPMessage &  obj 
) [inline]

Definition at line 140 of file QuonP_m.h.

00140 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
QuonPSelfMessage &  obj 
) [inline]

Definition at line 92 of file QuonP_m.h.

00092 {obj.parsimPack(b);}

void doUnpacking ( cCommBuffer *  b,
QuonPEventMessage &  obj 
) [inline]

Definition at line 268 of file QuonP_m.h.

00268 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
QuonPMoveMessage &  obj 
) [inline]

Definition at line 238 of file QuonP_m.h.

00238 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
QuonPListMessage &  obj 
) [inline]

Definition at line 187 of file QuonP_m.h.

00187 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
QuonPMessage &  obj 
) [inline]

Definition at line 141 of file QuonP_m.h.

00141 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
QuonPSelfMessage &  obj 
) [inline]

Definition at line 93 of file QuonP_m.h.

00093 {obj.parsimUnpack(b);}


Variable Documentation

const int QUONPAOI_L = 64 [static]

Definition at line 26 of file QuonP_m.h.

const int QUONPCOMMAND_L = 8 [static]

Definition at line 24 of file QuonP_m.h.

const int QUONPENTRYCOUNT_L = 32 [static]

Definition at line 27 of file QuonP_m.h.

const int QUONPFLAG_L = 1 [static]

Definition at line 28 of file QuonP_m.h.

const int QUONPPOSITION_L = 128 [static]

Definition at line 25 of file QuonP_m.h.


Generated on Fri Mar 20 18:40:27 2009 for OverSim by  doxygen 1.5.5