100 virtual void expire(Event *e);
146 virtual void recv(Packet *);
156 virtual int command(
int,
const char *
const *);
183 std::map<RxFrameSetKey, RxFrameSet>
216 virtual void startTx(Packet *);
226 virtual void endTx(Packet *);
236 virtual void startRx(Packet *);
243 virtual void endRx(Packet *);
The class used by Uwal to handle simulator's event expirations; it is exploited to schedule the sendD...
virtual void expire(Event *e)
Method to handle the expiration of a given event.
Uwal * pUwal_
Pointer to an Uwal object.
TxFrameTimer(Uwal *pUwal)
Class constructor.
The main class implementing the module used to implement the adaptation layer between ns2/NS-Miracle ...
virtual void endRx(Packet *)
Method to end a packet reception.
void checkRxFrameSet()
Method responsible to check for errors the received frames.
std::queue< Packet * > sendUpPkts
queue of the packets to send up to the upper protocols
int debug_
String containing dummy characters to be used as padding chars if necessary.
virtual int recvSyncClMsg(ClMessage *m)
Method to handle the reception of a synchronous crosslayer message.
virtual int command(int, const char *const *)
Method to map tcl commands into c++ methods.
packer * pPacker
Pointer to the packer of the protocol headers.
std::queue< Packet * > sendDownPkts
queue of the packet to send down to the modem
virtual void endTx(Packet *)
Method to end a packet transmission.
double interframe_period
Time period [s] between two successive frame to be sent down.
void ALqueueManager()
Method responsible to manage the queueing system of Adaptation Layer.
void initializeHdr(Packet *, unsigned int)
Method responsible to initialize the headers of the packet.
TxFrameTimer InterframeTmr
Object of the class TxFrameTimer.
unsigned int pkt_counter
Counter for the pktID to set in TX.
std::queue< Packet * > sendUpFrames
queue of the frames to send up to the upper protocols
virtual int getModulationType(Packet *)
Unused method at the moment.
bool has_tap_clmsg
True if received a ClMessage from uwTAP.
int force_endTx_
0 not force, otherwise force endTx
virtual double getPERfromID(int mac_addr)
Method to search for the PER associated with a particular MAC address.
list< PERListElement > PERList
PER list (couple of ID of the node and Packet Error Rate associated )
int frame_padding
Flag to determine if perfoming bit padding up to PSDU size.
virtual double getTxDuration(Packet *)
Unused method at the moment.
std::queue< Packet * > sendDownFrames
queue of the frames to send down
virtual void recv(Packet *)
Method to handle the reception of packets arriving from the upper layers of the network simulator.
virtual void startRx(Packet *)
Method to start a packet reception.
void fragmentPkt(Packet *)
Method responsible to fragment the packet.
void reassembleFrames(Packet *)
Method responsible to reassemble the various fragments in a unique packets.
std::map< RxFrameSetKey, RxFrameSet > sendUpFrameSet
map of the frames to send up
double frame_set_validity
Time of validity of a frame set.
virtual bool isInPERList(int mac_addr)
Method to search a MAC address in the PER List.
virtual void startTx(Packet *)
Method to start the packet transmission.
size_t PSDU
size of the PSDU
Class exploited by the Uwal module to map an NS-Miracle packet into a bit stream, and vice-versa.
Header of the classes defining the frame elements (key and set) exploited by Uwal objects to reassebl...
Header of the class providing the Uwal header's description.
Header of the class responsible to map an NS-Miracle packet into a bit stream, and vice-versa.
struct PERListElement pl_element