ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

WirelessPhy Class Reference

#include <wireless-phy.h>

Inheritance diagram for WirelessPhy:

Phy BiConnector NsObject TclObject Handler List of all members.

Public Member Functions

 WirelessPhy ()
void sendDown (Packet *p)
int sendUp (Packet *p)
double getL () const
double getLambda () const
Nodenode (void) const
double getPtconsume ()
virtual int command (int argc, const char *const *argv)
virtual void dump (void) const
void node_on ()
void node_off ()
double getAntennaZ ()
double getPt ()
double getRXThresh ()
double getCSThresh ()
double getFreq ()

Protected Types

enum  ChannelStatus { IDLE, RECV, SEND }

Protected Attributes

double Pt_
double Pt_consume_
double Pr_consume_
double P_idle_
double last_send_time_
double channel_idle_time_
double update_energy_time_
double freq_
double lambda_
double L_
double RXThresh_
double CSThresh_
double CPThresh_
Idle_Timer idle_timer_
int status_

Private Member Functions

int initialized ()
void UpdateIdleEnergy ()
EnergyModelem ()


class Idle_Timer

Member Enumeration Documentation

enum WirelessPhy::ChannelStatus [protected]

Enumeration values:

Constructor & Destructor Documentation


Member Function Documentation

int WirelessPhy::command int    argc,
const char *const *    argv

Reimplemented from Phy.

void WirelessPhy::dump void    const [virtual]

Reimplemented from Phy.

EnergyModel* WirelessPhy::em   [inline, private]

double WirelessPhy::getAntennaZ   [inline]

double WirelessPhy::getCSThresh   [inline]

double WirelessPhy::getFreq   [inline]

double WirelessPhy::getL   const [inline]

double WirelessPhy::getLambda   const [inline]

double WirelessPhy::getPt   [inline]

double WirelessPhy::getPtconsume   [inline]

double WirelessPhy::getRXThresh   [inline]

int WirelessPhy::initialized   [inline, private]

Node* WirelessPhy::node void    const [inline, virtual]

Reimplemented from Phy.

void WirelessPhy::node_off  

void WirelessPhy::node_on  

void WirelessPhy::sendDown Packet   p [virtual]

Implements Phy.

int WirelessPhy::sendUp Packet   p [virtual]

Implements Phy.

void WirelessPhy::UpdateIdleEnergy   [private]

Friends And Related Function Documentation

friend class Idle_Timer [friend]

Member Data Documentation

Antenna* WirelessPhy::ant_ [protected]

double WirelessPhy::channel_idle_time_ [protected]

double WirelessPhy::CPThresh_ [protected]

double WirelessPhy::CSThresh_ [protected]

double WirelessPhy::freq_ [protected]

Idle_Timer WirelessPhy::idle_timer_ [protected]

double WirelessPhy::L_ [protected]

double WirelessPhy::lambda_ [protected]

double WirelessPhy::last_send_time_ [protected]

Modulation* WirelessPhy::modulation_ [protected]

double WirelessPhy::P_idle_ [protected]

double WirelessPhy::Pr_consume_ [protected]

Propagation* WirelessPhy::propagation_ [protected]

double WirelessPhy::Pt_ [protected]

double WirelessPhy::Pt_consume_ [protected]

double WirelessPhy::RXThresh_ [protected]

int WirelessPhy::status_ [protected]

double WirelessPhy::update_energy_time_ [protected]

The documentation for this class was generated from the following files:
This document is generated by doxygen.