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 #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 
43 {
44 public:
45  static TypeId GetTypeId (void);
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);
58  virtual void SetChannel (Ptr<SpectrumChannel> c);
61  virtual void StartRx (Ptr<SpectrumSignalParameters> params);
62 
63 private:
64  virtual void DoDispose (void);
68 };
69 
70 } // namespace ns3
71 
72 #endif /* WIFI_SPECTRUM_PHY_INTERFACE_H */
Abstract base class for Spectrum-aware PHY layers.
Definition: spectrum-phy.h:45
virtual Ptr< NetDevice > GetDevice() const
Get the associated NetDevice instance.
virtual 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...
tuple phy
Definition: third.py:86
virtual Ptr< MobilityModel > GetMobility()
Get the associated MobilityModel instance.
virtual void DoDispose(void)
Destructor implementation.
virtual void SetDevice(Ptr< NetDevice > d)
Set the associated NetDevice instance.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetSpectrumWifiPhy(Ptr< SpectrumWifiPhy > phy)
Connect SpectrumWifiPhy object.
virtual Ptr< AntennaModel > GetRxAntenna()
Get the AntennaModel used by the NetDevice for reception.
virtual void SetMobility(Ptr< MobilityModel > m)
Set the mobility model associated with this device.
virtual void SetChannel(Ptr< SpectrumChannel > c)
Set the channel attached to this device.
virtual Ptr< const SpectrumModel > GetRxSpectrumModel() const
a unique identifier for an interface.
Definition: type-id.h:58