Classes | Defines | Enumerations | Functions | Variables

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   0x0401
#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   0x0401

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 32 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 56 of file Vast_m.h.


Function Documentation

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

Definition at line 120 of file Vast_m.h.

{obj.parsimPack(b);}

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

Definition at line 213 of file Vast_m.h.

{obj.parsimPack(b);}

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

Definition at line 278 of file Vast_m.h.

{obj.parsimPack(b);}

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

Definition at line 170 of file Vast_m.h.

{obj.parsimPack(b);}

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

Definition at line 248 of file Vast_m.h.

{obj.parsimPack(b);}

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

Definition at line 214 of file Vast_m.h.

{obj.parsimUnpack(b);}

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

Definition at line 121 of file Vast_m.h.

{obj.parsimUnpack(b);}

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

Definition at line 279 of file Vast_m.h.

{obj.parsimUnpack(b);}

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

Definition at line 249 of file Vast_m.h.

{obj.parsimUnpack(b);}

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

Definition at line 171 of file Vast_m.h.

{obj.parsimUnpack(b);}


Variable Documentation

const int COUNT_L = 32 [static]

Definition at line 26 of file Vast_m.h.

const int ENTRYCOUNT_L = 32 [static]

Definition at line 25 of file Vast_m.h.

const int FLAG_L = 8 [static]

Definition at line 27 of file Vast_m.h.

const int POSITION_L = 128 [static]

Definition at line 24 of file Vast_m.h.

const int VASTCOMMAND_L = 8 [static]

Definition at line 23 of file Vast_m.h.