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
lr-wpan-spectrum-signal-parameters.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 The Boeing Company
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Gary Pei <guangyu.pei@boeing.com>
7
*/
8
#include "
lr-wpan-spectrum-signal-parameters.h
"
9
10
#include <ns3/log.h>
11
#include <ns3/packet-burst.h>
12
13
namespace
ns3
14
{
15
namespace
lrwpan
16
{
17
18
NS_LOG_COMPONENT_DEFINE
(
"LrWpanSpectrumSignalParameters"
);
19
20
LrWpanSpectrumSignalParameters::LrWpanSpectrumSignalParameters
()
21
{
22
NS_LOG_FUNCTION
(
this
);
23
}
24
25
LrWpanSpectrumSignalParameters::LrWpanSpectrumSignalParameters
(
26
const
LrWpanSpectrumSignalParameters
& p)
27
:
SpectrumSignalParameters
(p)
28
{
29
NS_LOG_FUNCTION
(
this
<< &p);
30
packetBurst
= p.
packetBurst
->Copy();
31
}
32
33
Ptr<SpectrumSignalParameters>
34
LrWpanSpectrumSignalParameters::Copy
()
const
35
{
36
NS_LOG_FUNCTION
(
this
);
37
return
Create<LrWpanSpectrumSignalParameters>
(*
this
);
38
}
39
40
}
// namespace lrwpan
41
}
// namespace ns3
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition
log-macros-enabled.h:229
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
lr-wpan-spectrum-signal-parameters.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::SpectrumSignalParameters
This struct provides the generic signal representation to be used by all wireless technologies.
Definition
spectrum-signal-parameters.h:42
ns3::lrwpan::LrWpanSpectrumSignalParameters
Signal parameters for LrWpan.
Definition
lr-wpan-spectrum-signal-parameters.h:28
ns3::lrwpan::LrWpanSpectrumSignalParameters::Copy
Ptr< SpectrumSignalParameters > Copy() const override
make a "virtual" copy of this class, where "virtual" refers to the fact that if the actual object is ...
Definition
lr-wpan-spectrum-signal-parameters.cc:34
ns3::lrwpan::LrWpanSpectrumSignalParameters::packetBurst
Ptr< PacketBurst > packetBurst
The packet burst being transmitted with this signal.
Definition
lr-wpan-spectrum-signal-parameters.h:45
ns3::lrwpan::LrWpanSpectrumSignalParameters::LrWpanSpectrumSignalParameters
LrWpanSpectrumSignalParameters()
default constructor
Definition
lr-wpan-spectrum-signal-parameters.cc:20
src
lr-wpan
model
lr-wpan-spectrum-signal-parameters.cc
Generated on Fri Nov 8 2024 13:59:02 for ns-3 by
1.11.0