A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lr-wpan-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) 2011 The Boeing Company
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: Gary Pei <guangyu.pei@boeing.com>
19
*/
20
#ifndef LR_WPAN_SPECTRUM_VALUE_HELPER_H
21
#define LR_WPAN_SPECTRUM_VALUE_HELPER_H
22
23
#include <ns3/ptr.h>
24
25
namespace
ns3
{
26
27
class
SpectrumValue;
28
34
class
LrWpanSpectrumValueHelper
35
{
36
public
:
37
LrWpanSpectrumValueHelper
(
void
);
38
virtual
~LrWpanSpectrumValueHelper
(
void
);
39
46
Ptr<SpectrumValue>
CreateTxPowerSpectralDensity
(
double
txPower, uint32_t
channel
);
47
53
Ptr<SpectrumValue>
CreateNoisePowerSpectralDensity
(uint32_t
channel
);
54
62
static
double
TotalAvgPower
(
Ptr<const SpectrumValue>
psd, uint32_t
channel
);
63
64
private
:
68
double
m_noiseFactor
;
69
70
};
71
72
}
//namespace ns3
73
74
#endif
/* LR_WPAN_SPECTRUM_VALUE_HELPER_H */
ns3::LrWpanSpectrumValueHelper
This class defines all functions to create spectrum model for LrWpan.
Definition:
lr-wpan-spectrum-value-helper.h:35
ns3::LrWpanSpectrumValueHelper::LrWpanSpectrumValueHelper
LrWpanSpectrumValueHelper(void)
Definition:
lr-wpan-spectrum-value-helper.cc:59
ns3::LrWpanSpectrumValueHelper::CreateNoisePowerSpectralDensity
Ptr< SpectrumValue > CreateNoisePowerSpectralDensity(uint32_t channel)
create spectrum value for noise
Definition:
lr-wpan-spectrum-value-helper.cc:104
ns3::LrWpanSpectrumValueHelper::m_noiseFactor
double m_noiseFactor
A scaling factor for the noise power.
Definition:
lr-wpan-spectrum-value-helper.h:68
ns3::LrWpanSpectrumValueHelper::TotalAvgPower
static double TotalAvgPower(Ptr< const SpectrumValue > psd, uint32_t channel)
total average power of the signal is the integral of the PSD using the limits of the given channel
Definition:
lr-wpan-spectrum-value-helper.cc:127
ns3::LrWpanSpectrumValueHelper::~LrWpanSpectrumValueHelper
virtual ~LrWpanSpectrumValueHelper(void)
Definition:
lr-wpan-spectrum-value-helper.cc:65
ns3::LrWpanSpectrumValueHelper::CreateTxPowerSpectralDensity
Ptr< SpectrumValue > CreateTxPowerSpectralDensity(double txPower, uint32_t channel)
create spectrum value
Definition:
lr-wpan-spectrum-value-helper.cc:71
ns3::Ptr< SpectrumValue >
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
third.channel
channel
Definition:
third.py:92
src
lr-wpan
model
lr-wpan-spectrum-value-helper.h
Generated on Tue Feb 6 2024 19:21:21 for ns-3 by
1.9.1