A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
wifi
model
wifi-phy-listener.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
* Sébastien Deronne <sebastien.deronne@gmail.com>
20
*/
21
22
#ifndef WIFI_PHY_LISTENER_H
23
#define WIFI_PHY_LISTENER_H
24
25
namespace
ns3
{
26
27
class
Time
;
28
32
class
WifiPhyListener
33
{
34
public
:
35
/****************************************************************
36
* This destructor is needed.
37
****************************************************************/
38
39
virtual
~WifiPhyListener
()
40
{
41
}
42
55
virtual
void
NotifyRxStart
(
Time
duration) = 0;
61
virtual
void
NotifyRxEndOk
(
void
) = 0;
67
virtual
void
NotifyRxEndError
(
void
) = 0;
78
virtual
void
NotifyTxStart
(
Time
duration,
double
txPowerDbm) = 0;
94
virtual
void
NotifyMaybeCcaBusyStart
(
Time
duration) = 0;
102
virtual
void
NotifySwitchingStart
(
Time
duration) = 0;
106
virtual
void
NotifySleep
(
void
) = 0;
110
virtual
void
NotifyOff
(
void
) = 0;
114
virtual
void
NotifyWakeup
(
void
) = 0;
118
virtual
void
NotifyOn
(
void
) = 0;
119
};
120
121
}
//namespace ns3
122
123
#endif
/* WIFI_PHY_LISTENER_H */
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::WifiPhyListener::NotifyTxStart
virtual void NotifyTxStart(Time duration, double txPowerDbm)=0
ns3::WifiPhyListener::NotifyWakeup
virtual void NotifyWakeup(void)=0
Notify listeners that we woke up.
ns3::WifiPhyListener::NotifyOn
virtual void NotifyOn(void)=0
Notify listeners that we went to switch on.
ns3::TracedValueCallback::Time
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
Definition:
nstime.h:740
ns3::WifiPhyListener::~WifiPhyListener
virtual ~WifiPhyListener()
Definition:
wifi-phy-listener.h:39
ns3::WifiPhyListener::NotifySwitchingStart
virtual void NotifySwitchingStart(Time duration)=0
ns3::WifiPhyListener::NotifyRxEndOk
virtual void NotifyRxEndOk(void)=0
We have received the last bit of a packet for which NotifyRxStart was invoked first and...
ns3::WifiPhyListener
receive notifications about phy events.
Definition:
wifi-phy-listener.h:32
ns3::WifiPhyListener::NotifySleep
virtual void NotifySleep(void)=0
Notify listeners that we went to sleep.
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WifiPhyListener::NotifyRxStart
virtual void NotifyRxStart(Time duration)=0
ns3::WifiPhyListener::NotifyRxEndError
virtual void NotifyRxEndError(void)=0
We have received the last bit of a packet for which NotifyRxStart was invoked first and...
ns3::WifiPhyListener::NotifyOff
virtual void NotifyOff(void)=0
Notify listeners that we went to switch off.
ns3::WifiPhyListener::NotifyMaybeCcaBusyStart
virtual void NotifyMaybeCcaBusyStart(Time duration)=0
Generated on Wed Nov 7 2018 10:02:15 for ns-3 by
1.8.14