|
24 |
#include "ns3/simulator.h" |
24 |
#include "ns3/simulator.h" |
25 |
#include "ns3/node.h" |
25 |
#include "ns3/node.h" |
26 |
#include "ns3/uinteger.h" |
26 |
#include "ns3/uinteger.h" |
|
|
27 |
#include "ns3/pointer.h" |
27 |
|
28 |
|
28 |
#include "dca-txop.h" |
29 |
#include "dca-txop.h" |
29 |
#include "dcf-manager.h" |
30 |
#include "dcf-manager.h" |
|
102 |
static TypeId tid = TypeId ("ns3::DcaTxop") |
103 |
static TypeId tid = TypeId ("ns3::DcaTxop") |
103 |
.SetParent (ns3::Dcf::GetTypeId ()) |
104 |
.SetParent (ns3::Dcf::GetTypeId ()) |
104 |
.AddConstructor<DcaTxop> () |
105 |
.AddConstructor<DcaTxop> () |
|
|
106 |
.AddAttribute ("Queue", "The WifiMacQueue object", |
107 |
PointerValue (), |
108 |
MakePointerAccessor (&DcaTxop::GetQueue), |
109 |
MakePointerChecker<WifiMacQueue> ()) |
105 |
; |
110 |
; |
106 |
return tid; |
111 |
return tid; |
107 |
} |
112 |
} |
|
171 |
m_txFailedCallback = callback; |
176 |
m_txFailedCallback = callback; |
172 |
} |
177 |
} |
173 |
|
178 |
|
174 |
void |
179 |
Ptr<WifiMacQueue > |
175 |
DcaTxop::SetMaxQueueSize (uint32_t size) |
180 |
DcaTxop::GetQueue () const |
176 |
{ |
181 |
{ |
177 |
NS_LOG_FUNCTION (this << size); |
182 |
NS_LOG_FUNCTION (this); |
178 |
m_queue->SetMaxSize (size); |
183 |
return m_queue; |
179 |
} |
184 |
} |
180 |
void |
185 |
|
181 |
DcaTxop::SetMaxQueueDelay (Time delay) |
|
|
182 |
{ |
183 |
NS_LOG_FUNCTION (this << delay); |
184 |
m_queue->SetMaxDelay (delay); |
185 |
} |
186 |
void |
186 |
void |
187 |
DcaTxop::SetMinCw (uint32_t minCw) |
187 |
DcaTxop::SetMinCw (uint32_t minCw) |
188 |
{ |
188 |
{ |