A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
spectrum-model-ism2400MHz-res1MHz.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 CTTC
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Nicola Baldo <nbaldo@cttc.es>
7
*/
8
9
#include "
spectrum-model-ism2400MHz-res1MHz.h
"
10
11
namespace
ns3
12
{
13
14
/**
15
* \ingroup spectrum
16
* Spectrum model logger for frequencies in the 2.4 GHz ISM band
17
* with 1 MHz resolution.
18
*/
19
Ptr<SpectrumModel>
SpectrumModelIsm2400MhzRes1Mhz
;
20
21
/**
22
* \ingroup spectrum
23
*
24
* Static initializer class for Spectrum model logger for
25
* frequencies in the 2.4 GHz ISM band with 1 MHz resolution.
26
*/
27
class
static_SpectrumModelIsm2400MhzRes1Mhz_initializer
28
{
29
public
:
30
static_SpectrumModelIsm2400MhzRes1Mhz_initializer
()
31
{
32
std::vector<double> freqs;
33
freqs.reserve(100);
34
for
(
int
i = 0; i < 100; ++i)
35
{
36
freqs.push_back((i + 2400) * 1e6);
37
}
38
39
SpectrumModelIsm2400MhzRes1Mhz
=
Create<SpectrumModel>
(freqs);
40
}
41
};
42
43
/**
44
* \ingroup spectrum
45
* Static variable for analyzer initialization
46
*/
47
static_SpectrumModelIsm2400MhzRes1Mhz_initializer
48
g_static_SpectrumModelIsm2400MhzRes1Mhz_initializer_instance
;
49
50
}
// namespace ns3
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::static_SpectrumModelIsm2400MhzRes1Mhz_initializer
Static initializer class for Spectrum model logger for frequencies in the 2.4 GHz ISM band with 1 MHz...
Definition
spectrum-model-ism2400MHz-res1MHz.cc:28
ns3::static_SpectrumModelIsm2400MhzRes1Mhz_initializer::static_SpectrumModelIsm2400MhzRes1Mhz_initializer
static_SpectrumModelIsm2400MhzRes1Mhz_initializer()
Definition
spectrum-model-ism2400MHz-res1MHz.cc:30
ns3::Create
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Definition
ptr.h:436
ns3::g_static_SpectrumModelIsm2400MhzRes1Mhz_initializer_instance
static_SpectrumModelIsm2400MhzRes1Mhz_initializer g_static_SpectrumModelIsm2400MhzRes1Mhz_initializer_instance
Static variable for analyzer initialization.
Definition
spectrum-model-ism2400MHz-res1MHz.cc:48
ns3::SpectrumModelIsm2400MhzRes1Mhz
Ptr< SpectrumModel > SpectrumModelIsm2400MhzRes1Mhz
Spectrum model logger for frequencies in the 2.4 GHz ISM band with 1 MHz resolution.
Definition
spectrum-model-ism2400MHz-res1MHz.cc:19
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
spectrum-model-ism2400MHz-res1MHz.h
src
spectrum
model
spectrum-model-ism2400MHz-res1MHz.cc
Generated on Fri Nov 8 2024 13:59:06 for ns-3 by
1.11.0