RectSpectralMask Class Reference

#include <rect_spectral_mask.h>

Inheritance diagram for RectSpectralMask:

Inheritance graph
[legend]
Collaboration diagram for RectSpectralMask:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RectSpectralMask ()
double getFreq ()
void setFreq (double f)
double getPropagationSpeed ()
void setPropagationSpeed (double s)
double getLambda ()
double getBandwidth ()
void setBandwidth (double b)
double getOverlap (MSpectralMask *msm, Packet *p)
int command (int argc, const char *const *argv)

Protected Attributes

double freq_
double bandwidth_
 center frequency of this transmission in Hz
double c_
 bandwidth of the signal in Hz

Detailed Description

Rectangular spectral mask

Definition at line 41 of file rect_spectral_mask.h.


Member Function Documentation

double RectSpectralMask::getOverlap ( MSpectralMask tm,
Packet *  p 
) [virtual]

Calculates how much current mask (cm) overlaps with a target mask (tm)

Parameters:
tm target mask
Returns:
(integral cm(f) * tm(f) df) / (integral cm(f) df)

Implements MSpectralMask.

Definition at line 146 of file rect_spectral_mask.cc.

References bandwidth_, freq_, getBandwidth(), and getFreq().

Here is the call graph for this function:

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

TCL command interpreter

Parameters:
argc 
argv 
Returns:

Reimplemented from MSpectralMask.

Definition at line 90 of file rect_spectral_mask.cc.

References getBandwidth(), getFreq(), getLambda(), getPropagationSpeed(), setBandwidth(), setFreq(), and setPropagationSpeed().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:52:10 2008 for NS-MIRACLE library by  doxygen 1.5.2