A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
37
class
SpectrumValue5MhzFactory
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 */
ns3::Ptr< SpectrumValue >
ns3::SpectrumValue5MhzFactory
Implements Wifi SpectrumValue for the 2.4 GHz ISM band only, with a 5 MHz spectrum resolution.
Definition:
ism-spectrum-value-helper.h:38
ns3::SpectrumValue5MhzFactory::CreateConstant
virtual Ptr< SpectrumValue > CreateConstant(double psd)
Creates a SpectrumValue instance with a constant value for all frequencies.
Definition:
ism-spectrum-value-helper.cc:57
ns3::SpectrumValue5MhzFactory::~SpectrumValue5MhzFactory
virtual ~SpectrumValue5MhzFactory()=default
Destructor.
ns3::SpectrumValue5MhzFactory::CreateTxPowerSpectralDensity
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...
Definition:
ism-spectrum-value-helper.cc:65
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
third.channel
channel
Definition:
third.py:88
spectrum-value.h
src
spectrum
model
ism-spectrum-value-helper.h
Generated on Sun Mar 3 2024 17:11:08 for ns-3 by
1.9.1