A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
spectrum
helper
adhoc-aloha-noack-ideal-phy-helper.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 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 ADHOC_ALOHA_NOACK_IDEAL_PHY_HELPER_H
22
#define ADHOC_ALOHA_NOACK_IDEAL_PHY_HELPER_H
23
24
#include <string>
25
#include <ns3/attribute.h>
26
#include <ns3/object-factory.h>
27
#include <ns3/node-container.h>
28
#include <ns3/net-device-container.h>
29
#include <ns3/queue.h>
30
31
32
namespace
ns3
{
33
34
35
class
SpectrumValue;
36
class
SpectrumChannel;
37
42
class
AdhocAlohaNoackIdealPhyHelper
43
{
44
public
:
45
AdhocAlohaNoackIdealPhyHelper
();
46
~AdhocAlohaNoackIdealPhyHelper
();
47
53
void
SetChannel
(
Ptr<SpectrumChannel>
channel
);
54
60
void
SetChannel
(std::string channelName);
61
62
67
void
SetTxPowerSpectralDensity
(
Ptr<SpectrumValue>
txPsd);
68
73
void
SetNoisePowerSpectralDensity
(
Ptr<SpectrumValue>
noisePsd);
74
81
void
SetPhyAttribute
(std::string name,
const
AttributeValue
&v);
82
89
void
SetDeviceAttribute
(std::string n1,
const
AttributeValue
&v1);
90
112
void
SetAntenna
(std::string type,
113
std::string n0 =
""
,
const
AttributeValue
&v0 =
EmptyAttributeValue
(),
114
std::string n1 =
""
,
const
AttributeValue
&v1 =
EmptyAttributeValue
(),
115
std::string n2 =
""
,
const
AttributeValue
&v2 =
EmptyAttributeValue
(),
116
std::string n3 =
""
,
const
AttributeValue
&v3 =
EmptyAttributeValue
(),
117
std::string n4 =
""
,
const
AttributeValue
&v4 =
EmptyAttributeValue
(),
118
std::string n5 =
""
,
const
AttributeValue
&v5 =
EmptyAttributeValue
(),
119
std::string n6 =
""
,
const
AttributeValue
&v6 =
EmptyAttributeValue
(),
120
std::string n7 =
""
,
const
AttributeValue
&v7 =
EmptyAttributeValue
());
121
122
127
NetDeviceContainer
Install
(
NodeContainer
c)
const
;
132
NetDeviceContainer
Install
(
Ptr<Node>
node)
const
;
137
NetDeviceContainer
Install
(std::string nodeName)
const
;
138
139
140
protected
:
141
ObjectFactory
m_phy
;
142
ObjectFactory
m_device
;
143
ObjectFactory
m_queue
;
144
ObjectFactory
m_antenna
;
145
Ptr<SpectrumChannel>
m_channel
;
146
Ptr<SpectrumValue>
m_txPsd
;
147
Ptr<SpectrumValue>
m_noisePsd
;
148
};
149
150
151
152
}
// namespace ns3
153
154
#endif
/* ADHOC_ALOHA_NOACK_IDEAL_PHY_HELPER_H */
ns3::AdhocAlohaNoackIdealPhyHelper::m_noisePsd
Ptr< SpectrumValue > m_noisePsd
Noise power spectral density.
Definition:
adhoc-aloha-noack-ideal-phy-helper.h:147
ns3::AdhocAlohaNoackIdealPhyHelper::m_channel
Ptr< SpectrumChannel > m_channel
Channel.
Definition:
adhoc-aloha-noack-ideal-phy-helper.h:145
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::AdhocAlohaNoackIdealPhyHelper::SetTxPowerSpectralDensity
void SetTxPowerSpectralDensity(Ptr< SpectrumValue > txPsd)
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:67
ns3::AdhocAlohaNoackIdealPhyHelper
create the AlohaNoackNetDevice
Definition:
adhoc-aloha-noack-ideal-phy-helper.h:42
ns3::AdhocAlohaNoackIdealPhyHelper::AdhocAlohaNoackIdealPhyHelper
AdhocAlohaNoackIdealPhyHelper()
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:41
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:68
ns3::AdhocAlohaNoackIdealPhyHelper::SetPhyAttribute
void SetPhyAttribute(std::string name, const AttributeValue &v)
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:81
ns3::AdhocAlohaNoackIdealPhyHelper::m_queue
ObjectFactory m_queue
Object factory for the Queue objects.
Definition:
adhoc-aloha-noack-ideal-phy-helper.h:143
third.channel
channel
Definition:
third.py:85
ns3::AdhocAlohaNoackIdealPhyHelper::~AdhocAlohaNoackIdealPhyHelper
~AdhocAlohaNoackIdealPhyHelper()
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:49
ns3::EmptyAttributeValue
A class for an empty attribute value.
Definition:
attribute.h:232
ns3::AdhocAlohaNoackIdealPhyHelper::m_txPsd
Ptr< SpectrumValue > m_txPsd
Tx power spectral density.
Definition:
adhoc-aloha-noack-ideal-phy-helper.h:146
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:41
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:38
ns3::AdhocAlohaNoackIdealPhyHelper::SetDeviceAttribute
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:88
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition:
object-factory.h:47
ns3::AdhocAlohaNoackIdealPhyHelper::m_phy
ObjectFactory m_phy
Object factory for the phy objects.
Definition:
adhoc-aloha-noack-ideal-phy-helper.h:141
ns3::AdhocAlohaNoackIdealPhyHelper::m_antenna
ObjectFactory m_antenna
Object factory for the Antenna objects.
Definition:
adhoc-aloha-noack-ideal-phy-helper.h:144
ns3::AdhocAlohaNoackIdealPhyHelper::SetAntenna
void SetAntenna(std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue())
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:94
ns3::AdhocAlohaNoackIdealPhyHelper::SetChannel
void SetChannel(Ptr< SpectrumChannel > channel)
set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper ...
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:54
ns3::AdhocAlohaNoackIdealPhyHelper::m_device
ObjectFactory m_device
Object factory for the NetDevice objects.
Definition:
adhoc-aloha-noack-ideal-phy-helper.h:142
ns3::AdhocAlohaNoackIdealPhyHelper::Install
NetDeviceContainer Install(NodeContainer c) const
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:118
ns3::AdhocAlohaNoackIdealPhyHelper::SetNoisePowerSpectralDensity
void SetNoisePowerSpectralDensity(Ptr< SpectrumValue > noisePsd)
Definition:
adhoc-aloha-noack-ideal-phy-helper.cc:74
Generated on Wed Nov 7 2018 10:02:09 for ns-3 by
1.8.14