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