A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
constant-rate-wifi-manager.cc
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2004,2005 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  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19  */
20 
22 
23 #include "ns3/string.h"
24 #include "ns3/assert.h"
25 
26 namespace ns3 {
27 
28 NS_OBJECT_ENSURE_REGISTERED (ConstantRateWifiManager);
29 
30 TypeId
32 {
33  static TypeId tid = TypeId ("ns3::ConstantRateWifiManager")
35  .AddConstructor<ConstantRateWifiManager> ()
36  .AddAttribute ("DataMode", "The transmission mode to use for every data packet transmission",
37  StringValue ("OfdmRate6Mbps"),
38  MakeWifiModeAccessor (&ConstantRateWifiManager::m_dataMode),
39  MakeWifiModeChecker ())
40  .AddAttribute ("ControlMode", "The transmission mode to use for every control packet transmission.",
41  StringValue ("OfdmRate6Mbps"),
42  MakeWifiModeAccessor (&ConstantRateWifiManager::m_ctlMode),
43  MakeWifiModeChecker ())
44  ;
45  return tid;
46 }
47 
49 {
50 }
52 {
53 }
54 
55 
58 {
59  WifiRemoteStation *station = new WifiRemoteStation ();
60  return station;
61 }
62 
63 
64 void
66  double rxSnr, WifiMode txMode)
67 {
68 }
69 void
71 {
72 }
73 void
75 {
76 }
77 void
79  double ctsSnr, WifiMode ctsMode, double rtsSnr)
80 {
81 }
82 void
84  double ackSnr, WifiMode ackMode, double dataSnr)
85 {
86 }
87 void
89 {
90 }
91 void
93 {
94 }
95 
98 {
99  return m_dataMode;
100 }
101 WifiMode
103 {
104  return m_ctlMode;
105 }
106 
107 bool
109 {
110  return true;
111 }
112 
113 } // namespace ns3