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-phy-interface.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
#ifndef WIFI_SPECTRUM_PHY_INTERFACE_H
21
#define WIFI_SPECTRUM_PHY_INTERFACE_H
22
23
#include <ns3/ptr.h>
24
#include <ns3/object.h>
25
#include <ns3/spectrum-phy.h>
26
27
namespace
ns3
{
28
29
class
SpectrumWifiPhy;
30
42
class
WifiSpectrumPhyInterface
:
public
SpectrumPhy
43
{
44
public
:
45
static
TypeId
GetTypeId
(
void
);
46
WifiSpectrumPhyInterface
();
51
void
SetSpectrumWifiPhy
(
Ptr<SpectrumWifiPhy>
phy
);
52
53
// Inherited from SpectrumPhy
54
virtual
Ptr<NetDevice>
GetDevice
()
const
;
55
virtual
void
SetDevice
(
Ptr<NetDevice>
d);
56
virtual
void
SetMobility
(
Ptr<MobilityModel>
m);
57
virtual
Ptr<MobilityModel>
GetMobility
();
58
virtual
void
SetChannel
(
Ptr<SpectrumChannel>
c);
59
virtual
Ptr<const SpectrumModel>
GetRxSpectrumModel
()
const
;
60
virtual
Ptr<AntennaModel>
GetRxAntenna
();
61
virtual
void
StartRx
(
Ptr<SpectrumSignalParameters>
params);
62
63
private
:
64
virtual
void
DoDispose
(
void
);
65
Ptr<SpectrumWifiPhy>
m_spectrumWifiPhy
;
66
Ptr<NetDevice>
m_netDevice
;
67
Ptr<SpectrumChannel>
m_channel
;
68
};
69
70
}
// namespace ns3
71
72
#endif
/* WIFI_SPECTRUM_PHY_INTERFACE_H */
ns3::Ptr< SpectrumWifiPhy >
ns3::SpectrumPhy
Abstract base class for Spectrum-aware PHY layers.
Definition:
spectrum-phy.h:45
ns3::WifiSpectrumPhyInterface::GetDevice
virtual Ptr< NetDevice > GetDevice() const
Get the associated NetDevice instance.
Definition:
wifi-spectrum-phy-interface.cc:70
ns3::WifiSpectrumPhyInterface::m_channel
Ptr< SpectrumChannel > m_channel
Definition:
wifi-spectrum-phy-interface.h:67
ns3::WifiSpectrumPhyInterface::GetTypeId
static TypeId GetTypeId(void)
Definition:
wifi-spectrum-phy-interface.cc:42
ns3::WifiSpectrumPhyInterface::StartRx
virtual void StartRx(Ptr< SpectrumSignalParameters > params)
Notify the SpectrumPhy instance of an incoming signal.
Definition:
wifi-spectrum-phy-interface.cc:114
ns3::WifiSpectrumPhyInterface
This class is an adaptor between class SpectrumWifiPhy (which inherits from WifiPhy) and class Spectr...
Definition:
wifi-spectrum-phy-interface.h:42
ns3::WifiSpectrumPhyInterface::WifiSpectrumPhyInterface
WifiSpectrumPhyInterface()
Definition:
wifi-spectrum-phy-interface.cc:50
ns3::WifiSpectrumPhyInterface::m_netDevice
Ptr< NetDevice > m_netDevice
Definition:
wifi-spectrum-phy-interface.h:66
third.phy
tuple phy
Definition:
third.py:86
ns3::WifiSpectrumPhyInterface::GetMobility
virtual Ptr< MobilityModel > GetMobility()
Get the associated MobilityModel instance.
Definition:
wifi-spectrum-phy-interface.cc:76
ns3::WifiSpectrumPhyInterface::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
wifi-spectrum-phy-interface.cc:56
ns3::WifiSpectrumPhyInterface::SetDevice
virtual void SetDevice(Ptr< NetDevice > d)
Set the associated NetDevice instance.
Definition:
wifi-spectrum-phy-interface.cc:82
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WifiSpectrumPhyInterface::SetSpectrumWifiPhy
void SetSpectrumWifiPhy(Ptr< SpectrumWifiPhy > phy)
Connect SpectrumWifiPhy object.
Definition:
wifi-spectrum-phy-interface.cc:64
ns3::WifiSpectrumPhyInterface::GetRxAntenna
virtual Ptr< AntennaModel > GetRxAntenna()
Get the AntennaModel used by the NetDevice for reception.
Definition:
wifi-spectrum-phy-interface.cc:107
ns3::WifiSpectrumPhyInterface::SetMobility
virtual void SetMobility(Ptr< MobilityModel > m)
Set the mobility model associated with this device.
Definition:
wifi-spectrum-phy-interface.cc:88
ns3::WifiSpectrumPhyInterface::SetChannel
virtual void SetChannel(Ptr< SpectrumChannel > c)
Set the channel attached to this device.
Definition:
wifi-spectrum-phy-interface.cc:94
ns3::WifiSpectrumPhyInterface::GetRxSpectrumModel
virtual Ptr< const SpectrumModel > GetRxSpectrumModel() const
Definition:
wifi-spectrum-phy-interface.cc:101
ns3::WifiSpectrumPhyInterface::m_spectrumWifiPhy
Ptr< SpectrumWifiPhy > m_spectrumWifiPhy
Definition:
wifi-spectrum-phy-interface.h:65
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
src
wifi
model
wifi-spectrum-phy-interface.h
Generated on Mon Oct 3 2016 23:04:49 for ns-3 by
1.8.9.1