#include <uan-phy.h>
Public Member Functions | |
bool | operator== (PacketInfo &other) |
Returns true if the data members are equal. | |
bool | operator!= (PacketInfo &other) |
Returns true if data members are not equal. | |
bool | operator< (PacketInfo &other) |
Returns true if rxPwr is < other.rxPwer. Used to sort by received power if we wanted. | |
PacketInfo () | |
Construct PacketInfo with all members = -1. | |
PacketInfo (const Packet &p) | |
Sets all the members based on information kept in Packet p. | |
void | setinfo (const Packet &p) |
Sets all data members based on info in Packet p. | |
Public Attributes | |
double | rxPwr |
Received SNR in dB. | |
double | txPwr |
Transmission power in dB. | |
int | size |
Size of packet in bytes. | |
int | sourceAddr |
Address of transmitter. | |
double | time |
Time at which packet arrived at this node. | |
double | x |
X position in m. | |
double | y |
Y position in m. | |
double | z |
Depth in m. |
This is the information kept in pktList in the UanPhy class. This information is used to detect collisions and carrier sense info. The methods below should all be pretty self explanatory, as should the data members.