|
137 |
m_dcf = new DcaTxop::Dcf (this); |
137 |
m_dcf = new DcaTxop::Dcf (this); |
138 |
m_queue = CreateObject<WifiMacQueue> (); |
138 |
m_queue = CreateObject<WifiMacQueue> (); |
139 |
m_rng = new RealRandomStream (); |
139 |
m_rng = new RealRandomStream (); |
140 |
m_txMiddle = new MacTxMiddle (); |
|
|
141 |
} |
140 |
} |
142 |
|
141 |
|
143 |
DcaTxop::~DcaTxop () |
142 |
DcaTxop::~DcaTxop () |
Lines 155-165
DcaTxop::DoDispose (void)
|
Link Here
|
---|
|
155 |
delete m_transmissionListener; |
154 |
delete m_transmissionListener; |
156 |
delete m_dcf; |
155 |
delete m_dcf; |
157 |
delete m_rng; |
156 |
delete m_rng; |
158 |
delete m_txMiddle; |
|
|
159 |
m_transmissionListener = 0; |
157 |
m_transmissionListener = 0; |
160 |
m_dcf = 0; |
158 |
m_dcf = 0; |
161 |
m_rng = 0; |
159 |
m_rng = 0; |
162 |
m_txMiddle = 0; |
|
|
163 |
} |
160 |
} |
164 |
|
161 |
|
165 |
void |
162 |
void |
Lines 169-174
DcaTxop::SetManager (DcfManager *manager)
|
Link Here
|
---|
|
169 |
m_manager = manager; |
166 |
m_manager = manager; |
170 |
m_manager->Add (m_dcf); |
167 |
m_manager->Add (m_dcf); |
171 |
} |
168 |
} |
|
|
169 |
|
170 |
void DcaTxop::SetTxMiddle (MacTxMiddle *txMiddle){ |
171 |
m_txMiddle = txMiddle; |
172 |
} |
172 |
|
173 |
|
173 |
void |
174 |
void |
174 |
DcaTxop::SetLow (Ptr<MacLow> low) |
175 |
DcaTxop::SetLow (Ptr<MacLow> low) |