Public Member Functions

ns3::SpectrumConverter Class Reference

#include <spectrum-converter.h>

Inheritance diagram for ns3::SpectrumConverter:
Inheritance graph
[legend]
Collaboration diagram for ns3::SpectrumConverter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SpectrumConverter (Ptr< const SpectrumModel > fromSpectrumModel, Ptr< const SpectrumModel > toSpectrumModel)
Ptr< SpectrumValueConvert (Ptr< const SpectrumValue > vvf) const

Detailed Description

Class which implements a converter between SpectrumValue which are defined over different SpectrumModel. In more formal terms, this class allows conversion between different function spaces. In practical terms, this allows you to mix different spectrum representation within the same channel, such as a device using a coarse spectrum representation (e.g., one frequency for each IEEE 802.11 channel) and devices using a finer representation (e.g., one frequency for each OFDM subcarrier).


Constructor & Destructor Documentation

ns3::SpectrumConverter::SpectrumConverter ( Ptr< const SpectrumModel fromSpectrumModel,
Ptr< const SpectrumModel toSpectrumModel 
)

Create a SpectrumConverter class that will be able to convert ValueVsFreq instances defined over one SpectrumModel to corresponding ValueVsFreq instances defined over a diffent SpectrumModel

Parameters:
fromSpectrumModel the SpectrumModel to convert from
toSpectrumModel the SpectrumModel to convert to

Member Function Documentation

Ptr<SpectrumValue> ns3::SpectrumConverter::Convert ( Ptr< const SpectrumValue vvf  )  const

Convert a particular ValueVsFreq instance to

Parameters:
vvf the ValueVsFreq instance to be converted
Returns:
the converted version of the provided ValueVsFreq

The documentation for this class was generated from the following file: