A Discrete-Event Network Simulator
API
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 
21 #ifndef WIFI_SPECTRUM_PHY_INTERFACE_H
22 #define WIFI_SPECTRUM_PHY_INTERFACE_H
23 
24 #include "ns3/spectrum-phy.h"
25 
26 namespace ns3 {
27 
28 class SpectrumWifiPhy;
29 
42 {
43 public:
48  static TypeId GetTypeId (void);
55 
56  // Inherited from SpectrumPhy
57  Ptr<NetDevice> GetDevice () const;
58  void SetDevice (const Ptr<NetDevice> d);
59  void SetMobility (const Ptr<MobilityModel> m);
61  void SetChannel (const Ptr<SpectrumChannel> c);
65 
66 
67 private:
68  virtual void DoDispose (void);
72 };
73 
74 } // namespace ns3
75 
76 #endif /* WIFI_SPECTRUM_PHY_INTERFACE_H */
void SetDevice(const Ptr< NetDevice > d)
Set the associated NetDevice instance.
Abstract base class for Spectrum-aware PHY layers.
Definition: spectrum-phy.h:45
void SetSpectrumWifiPhy(const Ptr< SpectrumWifiPhy > phy)
Connect SpectrumWifiPhy object.
Ptr< NetDevice > GetDevice() const
Get the associated NetDevice instance.
Ptr< SpectrumChannel > m_channel
spectrum channel
static TypeId GetTypeId(void)
Get the type ID.
void StartRx(Ptr< SpectrumSignalParameters > params)
Notify the SpectrumPhy instance of an incoming signal.
This class is an adaptor between class SpectrumWifiPhy (which inherits from WifiPhy) and class Spectr...
phy
Definition: third.py:93
Ptr< NetDevice > m_netDevice
the device
Ptr< MobilityModel > GetMobility()
Get the associated MobilityModel instance.
virtual void DoDispose(void)
Destructor implementation.
void SetChannel(const Ptr< SpectrumChannel > c)
Set the channel attached to this device.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const SpectrumModel > GetRxSpectrumModel() const
Ptr< AntennaModel > GetRxAntenna()
Get the AntennaModel used by the NetDevice for reception.
Ptr< SpectrumWifiPhy > m_spectrumWifiPhy
spectrum PHY
void SetMobility(const Ptr< MobilityModel > m)
Set the mobility model associated with this device.
a unique identifier for an interface.
Definition: type-id.h:58