OverSim
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...

Macros

#define MSGC_VERSION   0x0402
#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

Macro Definition Documentation

#define MSGC_VERSION   0x0402

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

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
VastListMessage obj 
)
inline

Definition at line 178 of file Vast_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
VastMoveMessage obj 
)
inline

Definition at line 225 of file Vast_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
VastDiscardMessage obj 
)
inline

Definition at line 264 of file Vast_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
VastEventMessage obj 
)
inline

Definition at line 298 of file Vast_m.h.

{obj.parsimPack(b);}
void doUnpacking ( cCommBuffer *  b,
VastMessage obj 
)
inline

Definition at line 125 of file Vast_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
VastListMessage obj 
)
inline

Definition at line 179 of file Vast_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
VastMoveMessage obj 
)
inline

Definition at line 226 of file Vast_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
VastDiscardMessage obj 
)
inline

Definition at line 265 of file Vast_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
VastEventMessage obj 
)
inline

Definition at line 299 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.