A Discrete-Event Network Simulator
API
ism-spectrum-value-helper.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 CTTC
3  * Copyright (c) 2017 Orange Labs
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  * Authors: Nicola Baldo <nbaldo@cttc.es>
19  * Giuseppe Piro <g.piro@poliba.it>
20  */
21 
22 #ifndef ISM_SPECTRUM_VALUE_HELPER_H
23 #define ISM_SPECTRUM_VALUE_HELPER_H
24 
25 #include "spectrum-value.h"
26 
27 namespace ns3
28 {
29 
38 {
39  public:
43  virtual ~SpectrumValue5MhzFactory() = default;
51  virtual Ptr<SpectrumValue> CreateConstant(double psd);
71  virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity(double txPower, uint8_t channel);
72 };
73 
74 } // namespace ns3
75 
76 #endif /* ISM_SPECTRUM_VALUE_HELPER_H */
Implements Wifi SpectrumValue for the 2.4 GHz ISM band only, with a 5 MHz spectrum resolution.
virtual Ptr< SpectrumValue > CreateConstant(double psd)
Creates a SpectrumValue instance with a constant value for all frequencies.
virtual ~SpectrumValue5MhzFactory()=default
Destructor.
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity(double txPower, uint8_t channel)
Creates a SpectrumValue instance that represents the TX Power Spectral Density of a wifi device corre...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
channel
Definition: third.py:88