Vast_m.h File Reference

#include <omnetpp.h>
#include <NodeHandle.h>
#include <OverlayKey.h>
#include <Vector2D.h>
#include <CommonMessages_m.h>

Go to the source code of this file.

Classes

class  VastMessage
 Class generated from overlay/vast/Vast.msg by opp_msgc. More...
class  VastListMessage
 Class generated from overlay/vast/Vast.msg by opp_msgc. More...
class  VastMoveMessage
 Class generated from overlay/vast/Vast.msg by opp_msgc. More...
class  VastDiscardMessage
 Class generated from overlay/vast/Vast.msg by opp_msgc. More...
class  VastEventMessage
 Class generated from overlay/vast/Vast.msg by opp_msgc. More...

Defines

#define MSGC_VERSION   0x0400
#define VAST_L(msg)   (VASTCOMMAND_L + NODEHANDLE_L + KEY_L + POSITION_L + COUNT_L)
#define VASTLIST_L(msg)   (VAST_L(msg) + ENTRYCOUNT_L + FLAG_L + msg->getNeighborNodeArraySize() * (NODEHANDLE_L + POSITION_L))
#define VASTMOVE_L(msg)   (VAST_L(msg) + POSITION_L + 2 * FLAG_L)
#define VASTDISCARD_L(msg)   (VAST_L(msg) + NODEHANDLE_L)

Enumerations

enum  VASTCommand {
  JOIN_REQUEST = 0, JOIN_ACKNOWLEDGE = 1, NODE_MOVE = 2, NEW_NEIGHBORS = 3,
  NODE_LEAVE = 4, ENCLOSING_NEIGHBORS_REQUEST = 5, BACKUP_NEIGHBORS = 6, PING = 7,
  PONG = 8, DISCARD_NODE = 9, VAST_EVENT = 10
}
 Enum generated from overlay/vast/Vast.msg by opp_msgc. More...

Functions

void doPacking (cCommBuffer *b, VastMessage &obj)
void doUnpacking (cCommBuffer *b, VastMessage &obj)
void doPacking (cCommBuffer *b, VastListMessage &obj)
void doUnpacking (cCommBuffer *b, VastListMessage &obj)
void doPacking (cCommBuffer *b, VastMoveMessage &obj)
void doUnpacking (cCommBuffer *b, VastMoveMessage &obj)
void doPacking (cCommBuffer *b, VastDiscardMessage &obj)
void doUnpacking (cCommBuffer *b, VastDiscardMessage &obj)
void doPacking (cCommBuffer *b, VastEventMessage &obj)
void doUnpacking (cCommBuffer *b, VastEventMessage &obj)

Variables

static const int VASTCOMMAND_L = 8
static const int POSITION_L = 128
static const int ENTRYCOUNT_L = 32
static const int COUNT_L = 32
static const int FLAG_L = 8


Define Documentation

#define MSGC_VERSION   0x0400

Definition at line 11 of file Vast_m.h.

#define VAST_L ( msg   )     (VASTCOMMAND_L + NODEHANDLE_L + KEY_L + POSITION_L + COUNT_L)

#define VASTDISCARD_L ( msg   )     (VAST_L(msg) + NODEHANDLE_L)

Definition at line 33 of file Vast_m.h.

Referenced by Vast::sendDiscardNode().

#define VASTLIST_L ( msg   )     (VAST_L(msg) + ENTRYCOUNT_L + FLAG_L + msg->getNeighborNodeArraySize() * (NODEHANDLE_L + POSITION_L))

#define VASTMOVE_L ( msg   )     (VAST_L(msg) + POSITION_L + 2 * FLAG_L)


Enumeration Type Documentation

Enum generated from overlay/vast/Vast.msg by opp_msgc.

 enum VASTCommand
 {
     JOIN_REQUEST = 0;
     JOIN_ACKNOWLEDGE = 1;
     NODE_MOVE = 2;
     NEW_NEIGHBORS = 3;
     NODE_LEAVE = 4;
     ENCLOSING_NEIGHBORS_REQUEST = 5;
     BACKUP_NEIGHBORS = 6;
     PING = 7;
     PONG = 8;
     DISCARD_NODE = 9;
     VAST_EVENT = 10;
 }
 
Enumerator:
JOIN_REQUEST 
JOIN_ACKNOWLEDGE 
NODE_MOVE 
NEW_NEIGHBORS 
NODE_LEAVE 
ENCLOSING_NEIGHBORS_REQUEST 
BACKUP_NEIGHBORS 
PING 
PONG 
DISCARD_NODE 
VAST_EVENT 

Definition at line 57 of file Vast_m.h.

00057                  {
00058     JOIN_REQUEST = 0,
00059     JOIN_ACKNOWLEDGE = 1,
00060     NODE_MOVE = 2,
00061     NEW_NEIGHBORS = 3,
00062     NODE_LEAVE = 4,
00063     ENCLOSING_NEIGHBORS_REQUEST = 5,
00064     BACKUP_NEIGHBORS = 6,
00065     PING = 7,
00066     PONG = 8,
00067     DISCARD_NODE = 9,
00068     VAST_EVENT = 10
00069 };


Function Documentation

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

Definition at line 279 of file Vast_m.h.

00279 {obj.parsimPack(b);}

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

Definition at line 249 of file Vast_m.h.

00249 {obj.parsimPack(b);}

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

Definition at line 214 of file Vast_m.h.

00214 {obj.parsimPack(b);}

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

Definition at line 171 of file Vast_m.h.

00171 {obj.parsimPack(b);}

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

Definition at line 121 of file Vast_m.h.

00121 {obj.parsimPack(b);}

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

Definition at line 280 of file Vast_m.h.

00280 {obj.parsimUnpack(b);}

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

Definition at line 250 of file Vast_m.h.

00250 {obj.parsimUnpack(b);}

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

Definition at line 215 of file Vast_m.h.

00215 {obj.parsimUnpack(b);}

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

Definition at line 172 of file Vast_m.h.

00172 {obj.parsimUnpack(b);}

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

Definition at line 122 of file Vast_m.h.

00122 {obj.parsimUnpack(b);}


Variable Documentation

const int COUNT_L = 32 [static]

Definition at line 27 of file Vast_m.h.

const int ENTRYCOUNT_L = 32 [static]

Definition at line 26 of file Vast_m.h.

const int FLAG_L = 8 [static]

Definition at line 28 of file Vast_m.h.

const int POSITION_L = 128 [static]

Definition at line 25 of file Vast_m.h.

const int VASTCOMMAND_L = 8 [static]

Definition at line 24 of file Vast_m.h.


Generated on Tue Sep 8 17:26:56 2009 for OverSim by  doxygen 1.5.8