A Discrete-Event Network Simulator
API
wifi-spectrum-value-helper.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2009 CTTC
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Nicola Baldo <nbaldo@cttc.es>
19  */
20 
21 #ifndef WIFI_SPECTRUM_VALUE_HELPER_H
22 #define WIFI_SPECTRUM_VALUE_HELPER_H
23 
24 
25 #include <ns3/spectrum-value.h>
26 
27 namespace ns3 {
28 
29 
30 
38 {
39 public:
40  virtual ~WifiSpectrumValueHelper ();
49  virtual Ptr<SpectrumValue> CreateConstant (double psd) = 0;
50 
61  virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity (double txPower, uint32_t channel) = 0;
62 
72  virtual Ptr<SpectrumValue> CreateRfFilter (uint32_t channel) = 0;
73 
74 };
75 
76 
77 
86 {
87 public:
89  // inherited from WifiSpectrumValueHelper
90  virtual Ptr<SpectrumValue> CreateConstant (double psd);
91  virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity (double txPower, uint32_t channel);
92  virtual Ptr<SpectrumValue> CreateRfFilter (uint32_t channel);
93 
94 };
95 
96 
97 
98 } // namespace ns3
99 
100 
101 
102 #endif /* WIFI_SPECTRUM_VALUE_HELPER_H */
tuple channel
Definition: third.py:85
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity(double txPower, uint32_t channel)=0
Creates a SpectrumValue instance which represents the TX Power Spectral Density of a wifi device corr...
virtual Ptr< SpectrumValue > CreateConstant(double psd)=0
Creates a SpectrumValue instance which has a constant value for all frequencies.
virtual Ptr< SpectrumValue > CreateRfFilter(uint32_t channel)=0
Creates a pectrumValue instance which represents the frequency response of the RF filter which is use...
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity(double txPower, uint32_t channel)
Creates a SpectrumValue instance which represents the TX Power Spectral Density of a wifi device corr...
This abstract class defines the interface for interacting with all WifiSpectrumValue implementations...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual Ptr< SpectrumValue > CreateConstant(double psd)
Creates a SpectrumValue instance which has a constant value for all frequencies.
virtual Ptr< SpectrumValue > CreateRfFilter(uint32_t channel)
Creates a pectrumValue instance which represents the frequency response of the RF filter which is use...
Implements WifiSpectrumValue for the 2.4 GHz ISM band only, with a 5 MHz spectrum resolution...