|
DESERT 4.0.0
|
#include <uw-aloha-q-sink.h>


Public Member Functions | |
| UwAloha_Q_SINK () | |
| virtual | ~UwAloha_Q_SINK () |
| virtual int | recvSyncClMsg (ClMessage *m) |
Protected Types | |
| enum | UWALOHAQ_PKT_TYPE { UWALOHAQ_ACK_PKT , UWALOHAQ_DATA_PKT } |
| enum | UWALOHAQ_SINK_STATUS { IDLE , TRANSMITTING , RECEIVING } |
Protected Member Functions | |
| virtual void | recvFromUpperLayers (Packet *p) |
| virtual void | Phy2MacEndRx (Packet *p) |
| virtual int | getLayerIdFromTag (const std::string &tag) |
| virtual void | Phy2MacStartRx (const Packet *p) |
| virtual void | Phy2MacEndTx (const Packet *p) |
| virtual void | txAck (int dest_addr) |
| virtual void | initPkt (Packet *p, int dest_adrr) |
| virtual int | command (int argc, const char *const *argv) |
Protected Attributes | |
| UWALOHAQ_SINK_STATUS | sink_status |
| int | packet_sent_curr_slot_ |
| int | debug_ |
| int | sea_trial_ |
| int | ACK_size |
| int | HDR_size |
| std::deque< Packet * > | buffer |
| int | ack_phy_id |
| std::string | phy_ack_tag |
Class that represents an ALOHAQ Sink
|
protected |
|
protected |
| UwAloha_Q_SINK::UwAloha_Q_SINK | ( | ) |
Constructor of the TDMA class
References ACK_size, debug_, HDR_size, and sea_trial_.
|
virtual |
Destructor of the TDMA class
|
protectedvirtual |
TCL command interpreter. It implements the following OTcl methods:
| argc | Number of arguments in argv. |
| argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
References phy_ack_tag.
Referenced by recvSyncClMsg().
|
protectedvirtual |
Referenced by txAck().
|
protectedvirtual |
Method called to add the MAC header size
| const | Packet* Pointer to an Packet object that rapresent the Packet in transmission |
References ACK_size, and PT_MMAC_ACK.
Referenced by txAck().
|
protectedvirtual |
Method called when the Phy Layer finish to receive a Packet
| const | Packet* Pointer to an Packet object that rapresent the Packet in reception |
References debug_, IDLE, PT_MMAC_ACK, sink_status, and txAck().

|
protectedvirtual |
Method called when the Mac Layer start to transmit a Packet
| const | Packet* Pointer to an Packet object that rapresent the Packet in transmission Method called when the Mac Layer finish to transmit a Packet |
| const | Packet* Pointer to an Packet object that rapresent the Packet in transmission |
References IDLE, packet_sent_curr_slot_, and sink_status.
|
protectedvirtual |
Method called when the Phy Layer start to receive a Packet
| const | Packet* Pointer to an Packet object that rapresent the Packet in reception |
References IDLE, RECEIVING, and sink_status.
|
protectedvirtual |
Receive the packet from the upper layer (e.g. IP)
| Packet* | pointer to the packet received |
|
virtual |
|
protectedvirtual |
Method called to transmit ACK packet
References ack_phy_id, getLayerIdFromTag(), initPkt(), phy_ack_tag, sink_status, and TRANSMITTING.
Referenced by Phy2MacEndRx().

|
protected |
Referenced by txAck().
|
protected |
Referenced by initPkt(), and UwAloha_Q_SINK().
|
protected |
Buffer of the MAC node
|
protected |
Debug variable: 0 for no info, >-5 for small info, <-5 for complete info
Referenced by Phy2MacEndRx(), and UwAloha_Q_SINK().
|
protected |
Size of the HDR if any
Referenced by UwAloha_Q_SINK().
|
protected |
counter of packet has been sent in the current slot
Referenced by Phy2MacEndTx().
|
protected |
Written log variable
Referenced by UwAloha_Q_SINK().
|
protected |
Variable holding the status enum type
Referenced by Phy2MacEndRx(), Phy2MacEndTx(), Phy2MacStartRx(), and txAck().