UanPhyBhpFsk Class Reference

Phy class that tries to model FH-FSK modulation. More...

#include <uan-phy-bhpfsk.h>

Inheritance diagram for UanPhyBhpFsk:

Inheritance graph
[legend]
Collaboration diagram for UanPhyBhpFsk:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

virtual UanPhy::TransEvent rx (Packet *p)
 Receive packet p.
virtual double getSINR (Packet *p, double st)
 Recomputes SINR of packet p that arrived at time st.

Protected Attributes

double tSym
 Length of a symbol.
int bins
 Number of center frequencies.

Detailed Description

Phy class that tries to model FH-FSK modulation.

Structure: See UanPhy for information about PHY layer in NS2 UAN

This Phy layer attempts to calculate interference of packets when they overlap by looking at Bellhop arrival results from the UanPropagationBhp class and finding wether the two packets would be on the same frequency at the same time assuming that they have the same symbol length and number of frequency bins and are following the same hopping pattern. This would be the case if all nodes were using the WHOI Micromodem in FH-FSK mode (the default mode).

At the time of this documentation, any overlap between two packets that causes the SINR to drop below rxThresh will result in a packet being discarded.

This layer will access directly the propagation member of the channel layer.

Note:
Requires UAN Channel BHP to be used
Author:
Leonard Tracy
Date:
9-28-2007
Contact: lentracy@u.washington.edu Created on: June 2007


Member Function Documentation

UanPhy::TransEvent UanPhyBhpFsk::rx ( Packet *  p  )  [protected, virtual]

Receive packet p.

Parameters:
p Pointer to a newly arriving packet.
This method receives the packet p, and if a packet is already being received or there is an interfering packet already passing this node, recomputes the SINR using the Bellhop information obtained from UanChannelBhp.

Reimplemented from UanPhy.

double UanPhyBhpFsk::getSINR ( Packet *  p,
double  st 
) [protected, virtual]

Recomputes SINR of packet p that arrived at time st.

Parameters:
p Pointer to the packet which needs the SINR recomputed
st Time at which packet p arrived.
Computes the interference of packet p by all packets in pktList. This attempts to skip p in the pktList, but it would probably be better if p was not in pktList when it was called. (In other words, tried to fix this but never tested it)


The documentation for this class was generated from the following files:
Generated on Mon Oct 1 12:12:50 2007 for UANModule by  doxygen 1.5.1