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  

Phy Class Reference

#include <phy.h>

Inheritance diagram for Phy:

BiConnector NsObject TclObject Handler RepeaterPhy SatPhy WiredPhy WirelessPhy List of all members.

Public Member Functions

 Phy ()
void recv (Packet *p, Handler *h)
virtual void sendDown (Packet *p)=0
virtual int sendUp (Packet *p)=0
double txtime (Packet *p)
double txtime (int bytes)
virtual double bittime () const
Phy * nextchnl (void) const
void insertchnl (struct if_head *head)
Phy * nextnode (void) const
void insertnode (struct if_head *head)
void removechnl ()
void setchnl (Channel *chnl)
virtual void setnode (Node *node)
virtual Node * node (void) const
virtual Channel * channel (void) const
virtual void dump (void) const
LinkHead * head ()

Protected Member Functions

int command (int argc, const char *const *argv)
 LIST_ENTRY (Phy) chnl_link_
 LIST_ENTRY (Phy) node_link_

Protected Attributes

int index_
Node * node_
LinkHead * head_
double bandwidth_
Channel * channel_

Constructor & Destructor Documentation

Phy::Phy (    ) 
 


Member Function Documentation

virtual double Phy::bittime (    )  const [inline, virtual]
 

virtual Channel* Phy::channel (  void    )  const [inline, virtual]
 

int Phy::command (  int    argc,
const char *const *    argv
)  [protected, virtual]
 

Reimplemented from BiConnector.

Reimplemented in WiredPhy, WirelessPhy, and SatPhy.

void Phy::dump (  void    )  const [virtual]
 

Reimplemented in WirelessPhy.

LinkHead* Phy::head (    )  [inline]
 

void Phy::insertchnl (  struct if_head *    head )  [inline]
 

void Phy::insertnode (  struct if_head *    head )  [inline]
 

Phy::LIST_ENTRY (  Phy    )  [protected]
 

Phy::LIST_ENTRY (  Phy    )  [protected]
 

Phy* Phy::nextchnl (  void    )  const [inline]
 

Phy* Phy::nextnode (  void    )  const [inline]
 

virtual Node* Phy::node (  void    )  const [inline, virtual]
 

Reimplemented in WirelessPhy.

void Phy::recv (  Packet *    p,
Handler *    h
)  [virtual]
 

Reimplemented from BiConnector.

Reimplemented in RepeaterPhy.

void Phy::removechnl (    )  [inline]
 

virtual void Phy::sendDown (  Packet *    p )  [pure virtual]
 

Implemented in WiredPhy, WirelessPhy, SatPhy, and RepeaterPhy.

virtual int Phy::sendUp (  Packet *    p )  [pure virtual]
 

Implemented in WiredPhy, WirelessPhy, SatPhy, and RepeaterPhy.

void Phy::setchnl (  Channel *    chnl )  [inline]
 

virtual void Phy::setnode (  Node *    node )  [inline, virtual]
 

double Phy::txtime (  int    bytes )  [inline]
 

double Phy::txtime (  Packet *    p )  [inline]
 


Member Data Documentation

double Phy::bandwidth_ [protected]
 

Channel* Phy::channel_ [protected]
 

LinkHead* Phy::head_ [protected]
 

int Phy::index_ [protected]
 

Node* Phy::node_ [protected]
 


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