shawn::AlohaTransmissionModel::msg_delivery Struct Reference

Message structure used in Aloha transmission model. More...

#include <aloha_transmission_model.h>

Collaboration diagram for shawn::AlohaTransmissionModel::msg_delivery:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 msg_delivery (TransmissionModel::MessageInfo *mi)
 ~msg_delivery ()
 Destruction which deletes all the elements of msg_destination structure in destinations_.
void push_new_destination (shawn::Node *pNode)
 Push a destination node into the vector destination_.

Public Attributes

TransmissionModel::MessageInfopmi_
 The message received.
std::vector< msg_destination * > destinations_
 The vector which stores the neighbours of the source node.

Classes

struct  msg_destination
 The structure for information of a destination node. More...


Detailed Description

Message structure used in Aloha transmission model.

The structure includes the pointer of TransmissionModel::MessageInfo and the neighbours of the source node who sent the message.

See also:
msg_destination

Constructor & Destructor Documentation

shawn::AlohaTransmissionModel::msg_delivery::msg_delivery ( TransmissionModel::MessageInfo mi  )  [inline]

shawn::AlohaTransmissionModel::msg_delivery::~msg_delivery (  )  [inline]

Destruction which deletes all the elements of msg_destination structure in destinations_.


Member Function Documentation

void shawn::AlohaTransmissionModel::msg_delivery::push_new_destination ( shawn::Node pNode  )  [inline]

Push a destination node into the vector destination_.

Parameters:
pNode pointer to the destination node


Member Data Documentation

The message received.

The vector which stores the neighbours of the source node.


The documentation for this struct was generated from the following file:

Generated on Thu Sep 9 00:01:29 2010 for Shawn by  doxygen 1.5.6