A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
37
class
WifiSpectrumValueHelper
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
85
class
WifiSpectrumValue5MhzFactory
:
public
WifiSpectrumValueHelper
86
{
87
public
:
88
virtual
~WifiSpectrumValue5MhzFactory
();
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 */
third.channel
tuple channel
Definition:
third.py:85
ns3::Ptr< SpectrumValue >
ns3::WifiSpectrumValueHelper::CreateTxPowerSpectralDensity
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...
ns3::WifiSpectrumValueHelper::CreateConstant
virtual Ptr< SpectrumValue > CreateConstant(double psd)=0
Creates a SpectrumValue instance which has a constant value for all frequencies.
ns3::WifiSpectrumValueHelper::CreateRfFilter
virtual Ptr< SpectrumValue > CreateRfFilter(uint32_t channel)=0
Creates a pectrumValue instance which represents the frequency response of the RF filter which is use...
ns3::WifiSpectrumValue5MhzFactory::CreateTxPowerSpectralDensity
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...
Definition:
wifi-spectrum-value-helper.cc:70
ns3::WifiSpectrumValueHelper
This abstract class defines the interface for interacting with all WifiSpectrumValue implementations...
Definition:
wifi-spectrum-value-helper.h:37
ns3::WifiSpectrumValue5MhzFactory::~WifiSpectrumValue5MhzFactory
virtual ~WifiSpectrumValue5MhzFactory()
Definition:
wifi-spectrum-value-helper.cc:33
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WifiSpectrumValue5MhzFactory::CreateConstant
virtual Ptr< SpectrumValue > CreateConstant(double psd)
Creates a SpectrumValue instance which has a constant value for all frequencies.
Definition:
wifi-spectrum-value-helper.cc:61
ns3::WifiSpectrumValue5MhzFactory::CreateRfFilter
virtual Ptr< SpectrumValue > CreateRfFilter(uint32_t channel)
Creates a pectrumValue instance which represents the frequency response of the RF filter which is use...
Definition:
wifi-spectrum-value-helper.cc:104
ns3::WifiSpectrumValueHelper::~WifiSpectrumValueHelper
virtual ~WifiSpectrumValueHelper()
Definition:
wifi-spectrum-value-helper.cc:29
ns3::WifiSpectrumValue5MhzFactory
Implements WifiSpectrumValue for the 2.4 GHz ISM band only, with a 5 MHz spectrum resolution...
Definition:
wifi-spectrum-value-helper.h:85
src
spectrum
model
wifi-spectrum-value-helper.h
Generated on Thu Mar 24 2016 00:46:53 for ns-3 by
1.8.9.1