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

OmniAntenna Class Reference

#include <omni-antenna.h>

Inheritance diagram for OmniAntenna:

Inheritance graph
[legend]
Collaboration diagram for OmniAntenna:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OmniAntenna ()
virtual double getTxGain (double, double, double, double)
virtual double getRxGain (double, double, double, double)
virtual Antennacopy ()
virtual void release ()
void insert (struct an_head *head)
virtual double getX ()
virtual double getY ()
virtual double getZ ()

Protected Attributes

double Gt_
double Gr_
double X_
double Y_
double Z_

Constructor & Destructor Documentation

OmniAntenna::OmniAntenna  ) 
 

Definition at line 50 of file omni-antenna.cc.

References Gr_, and Gt_.

00050                          {
00051   Gt_ = 1.0;
00052   Gr_ = 1.0;
00053   bind("Gt_", &Gt_);
00054   bind("Gr_", &Gr_);
00055 }


Member Function Documentation

virtual Antenna* OmniAntenna::copy  )  [inline, virtual]
 

Reimplemented from Antenna.

Definition at line 63 of file omni-antenna.h.

00065                        {Rx,Tx}Gain that this one would at this point
00066   // in time.  This is needed b/c if a pkt is sent with a directable
00067   // antenna, this antenna may be have been redirected by the time we
00068   // call getTxGain on the copy to determine if the pkt is received.
00069     {
00070       // since the Gt and Gr are constant w.r.t time, we can just return
00071       // this object itself
00072       return this;
00073     }

virtual double OmniAntenna::getRxGain double  ,
double  ,
double  ,
double 
[inline, virtual]
 

Reimplemented from Antenna.

Definition at line 56 of file omni-antenna.h.

References Gr_.

00059     {
00060       return Gr_;
00061     }

virtual double OmniAntenna::getTxGain double  ,
double  ,
double  ,
double 
[inline, virtual]
 

Reimplemented from Antenna.

Definition at line 50 of file omni-antenna.h.

References Gt_.

00053     {
00054       return Gt_;
00055     }

virtual double Antenna::getX  )  [inline, virtual, inherited]
 

Definition at line 78 of file antenna.h.

References Antenna::X_.

Referenced by TwoRayGround::Pr(), Shadowing::Pr(), ShadowingVis::Pr(), and FreeSpace::Pr().

00078 {return X_;}

virtual double Antenna::getY  )  [inline, virtual, inherited]
 

Definition at line 79 of file antenna.h.

References Antenna::Y_.

Referenced by TwoRayGround::Pr(), Shadowing::Pr(), ShadowingVis::Pr(), and FreeSpace::Pr().

00079 {return Y_;}

virtual double Antenna::getZ  )  [inline, virtual, inherited]
 

Definition at line 80 of file antenna.h.

References Antenna::Z_.

Referenced by TwoRayGround::Pr(), Shadowing::Pr(), and FreeSpace::Pr().

00080 {return Z_;}

void Antenna::insert struct an_head *  head  )  [inline, inherited]
 

Definition at line 74 of file antenna.h.

References LIST_INSERT_HEAD.

00074                                            {
00075     LIST_INSERT_HEAD(head, this, link);
00076   }

virtual void OmniAntenna::release  )  [inline, virtual]
 

Reimplemented from Antenna.

Definition at line 75 of file omni-antenna.h.

00077     {
00078       // don't do anything
00079     }


Member Data Documentation

double OmniAntenna::Gr_ [protected]
 

Definition at line 83 of file omni-antenna.h.

Referenced by getRxGain(), and OmniAntenna().

double OmniAntenna::Gt_ [protected]
 

Definition at line 82 of file omni-antenna.h.

Referenced by getTxGain(), and OmniAntenna().

double Antenna::X_ [protected, inherited]
 

Definition at line 86 of file antenna.h.

Referenced by Antenna::Antenna(), and Antenna::getX().

double Antenna::Y_ [protected, inherited]
 

Definition at line 87 of file antenna.h.

Referenced by Antenna::Antenna(), and Antenna::getY().

double Antenna::Z_ [protected, inherited]
 

Definition at line 88 of file antenna.h.

Referenced by Antenna::Antenna(), and Antenna::getZ().


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 13:06:09 2004 for NS2.26SourcesOriginal by doxygen 1.3.3