A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
wifi-phy-listener.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2005,2006 INRIA
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
18
* Sébastien Deronne <sebastien.deronne@gmail.com>
19
*/
20
21
#ifndef WIFI_PHY_LISTENER_H
22
#define WIFI_PHY_LISTENER_H
23
24
#include "
wifi-phy-common.h
"
25
26
#include <vector>
27
28
namespace
ns3
29
{
30
34
class
WifiPhyListener
35
{
36
public
:
37
/****************************************************************
38
* This destructor is needed.
39
****************************************************************/
40
41
virtual
~WifiPhyListener
()
42
{
43
}
44
57
virtual
void
NotifyRxStart
(
Time
duration) = 0;
63
virtual
void
NotifyRxEndOk
() = 0;
69
virtual
void
NotifyRxEndError
() = 0;
80
virtual
void
NotifyTxStart
(
Time
duration,
double
txPowerDbm) = 0;
101
virtual
void
NotifyCcaBusyStart
(
Time
duration,
102
WifiChannelListType
channelType,
103
const
std::vector<Time>& per20MhzDurations) = 0;
111
virtual
void
NotifySwitchingStart
(
Time
duration) = 0;
115
virtual
void
NotifySleep
() = 0;
119
virtual
void
NotifyOff
() = 0;
123
virtual
void
NotifyWakeup
() = 0;
127
virtual
void
NotifyOn
() = 0;
128
};
129
130
}
// namespace ns3
131
132
#endif
/* WIFI_PHY_LISTENER_H */
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::WifiPhyListener
receive notifications about PHY events.
Definition:
wifi-phy-listener.h:35
ns3::WifiPhyListener::NotifyRxEndError
virtual void NotifyRxEndError()=0
We have received the last bit of a packet for which NotifyRxStart was invoked first and,...
ns3::WifiPhyListener::~WifiPhyListener
virtual ~WifiPhyListener()
Definition:
wifi-phy-listener.h:41
ns3::WifiPhyListener::NotifySwitchingStart
virtual void NotifySwitchingStart(Time duration)=0
ns3::WifiPhyListener::NotifyCcaBusyStart
virtual void NotifyCcaBusyStart(Time duration, WifiChannelListType channelType, const std::vector< Time > &per20MhzDurations)=0
ns3::WifiPhyListener::NotifyOff
virtual void NotifyOff()=0
Notify listeners that we went to switch off.
ns3::WifiPhyListener::NotifyRxEndOk
virtual void NotifyRxEndOk()=0
We have received the last bit of a packet for which NotifyRxStart was invoked first and,...
ns3::WifiPhyListener::NotifySleep
virtual void NotifySleep()=0
Notify listeners that we went to sleep.
ns3::WifiPhyListener::NotifyOn
virtual void NotifyOn()=0
Notify listeners that we went to switch on.
ns3::WifiPhyListener::NotifyTxStart
virtual void NotifyTxStart(Time duration, double txPowerDbm)=0
ns3::WifiPhyListener::NotifyRxStart
virtual void NotifyRxStart(Time duration)=0
ns3::WifiPhyListener::NotifyWakeup
virtual void NotifyWakeup()=0
Notify listeners that we woke up.
ns3::WifiChannelListType
WifiChannelListType
Enumeration of the possible channel-list parameter elements defined in Table 8-5 of IEEE 802....
Definition:
wifi-phy-common.h:505
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wifi-phy-common.h
Declaration of the following enums:
src
wifi
model
wifi-phy-listener.h
Generated on Sun Mar 3 2024 17:11:12 for ns-3 by
1.9.1