A Discrete-Event Network Simulator
API
yans-wifi-phy.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2005,2006 INRIA
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 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19 * Ghada Badawy <gbadawy@gmail.com>
20 * Sébastien Deronne <sebastien.deronne@gmail.com>
21 */
22
23#ifndef YANS_WIFI_PHY_H
24#define YANS_WIFI_PHY_H
25
26#include "wifi-phy.h"
27
28namespace ns3 {
29
30class YansWifiChannel;
31
47class YansWifiPhy : public WifiPhy
48{
49public:
54 static TypeId GetTypeId (void);
55
56 YansWifiPhy ();
57 virtual ~YansWifiPhy ();
58
59 // Implementation of pure virtual method.
60 void StartTx (Ptr<WifiPpdu> ppdu) override;
61 Ptr<Channel> GetChannel (void) const override;
62 uint16_t GetGuardBandwidth (uint16_t currentChannelWidth) const override;
63 std::tuple<double, double, double> GetTxMaskRejectionParams (void) const override;
64
71
72protected:
73 void DoDispose (void) override;
74
75
76private:
78};
79
80} //namespace ns3
81
82#endif /* YANS_WIFI_PHY_H */
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:74
a unique identifier for an interface.
Definition: type-id.h:59
802.11 PHY layer model
Definition: wifi-phy.h:49
802.11 PHY layer model
Definition: yans-wifi-phy.h:48
Ptr< YansWifiChannel > m_channel
YansWifiChannel that this YansWifiPhy is connected to.
Definition: yans-wifi-phy.h:77
void StartTx(Ptr< WifiPpdu > ppdu) override
std::tuple< double, double, double > GetTxMaskRejectionParams(void) const override
uint16_t GetGuardBandwidth(uint16_t currentChannelWidth) const override
void SetChannel(const Ptr< YansWifiChannel > channel)
Set the YansWifiChannel this YansWifiPhy is to be connected to.
static TypeId GetTypeId(void)
Get the type ID.
virtual ~YansWifiPhy()
Ptr< Channel > GetChannel(void) const override
Return the Channel this WifiPhy is connected to.
void DoDispose(void) override
Destructor implementation.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
channel
Definition: third.py:92