PacketInfo Class Reference

Struct used to keep information about a packet currently passing the hydraphone. More...

#include <uan-phy.h>

List of all members.

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.


Detailed Description

Struct used to keep information about a packet currently passing the hydraphone.

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.

Author:
Leonard Tracy
Date:
9-28-2007
Contact: lentracy@u.washington.edu Created on: June 2007


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