#include <uan-phy-bhpfsk.h>
Inheritance diagram for UanPhyBhpFsk:
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. |
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.
UanPhy::TransEvent UanPhyBhpFsk::rx | ( | Packet * | p | ) | [protected, virtual] |
Receive packet p.
p | Pointer to a newly arriving packet. |
Reimplemented from UanPhy.
double UanPhyBhpFsk::getSINR | ( | Packet * | p, | |
double | st | |||
) | [protected, virtual] |
Recomputes SINR of packet p that arrived at time st.
p | Pointer to the packet which needs the SINR recomputed | |
st | Time at which packet p arrived. |