This file is indexed.

/usr/include/ns3.26/ns3/traffic-control-helper.h is in libns3-dev 3.26+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2015 Universita' degli Studi di Napoli Federico II
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation;
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Author: Stefano Avallone <stavallo@unina.it>
 */
#ifndef TRAFFIC_CONTROL_HELPER_H
#define TRAFFIC_CONTROL_HELPER_H

#include <string>
#include <vector>
#include <map>
#include "ns3/object-factory.h"
#include "ns3/net-device-container.h"
#include "ns3/queue-disc-container.h"

namespace ns3 {

class QueueDisc;

/**
 * \ingroup traffic-control
 *
 * This class stores object factories required to create a queue disc and all of
 * its components (packet filters, internal queues, classes).
 */
class QueueDiscFactory
{
public:
  /**
   * \brief Constructor
   *
   * \param factory the factory used to create this queue disc
   */
  QueueDiscFactory (ObjectFactory factory);

  virtual ~QueueDiscFactory () {}

  /**
   * \brief Add a factory to create an internal queue
   *
   * \param factory the factory used to create an internal queue
   */
  void AddInternalQueue (ObjectFactory factory);

  /**
   * \brief Add a factory to create a packet filter
   *
   * \param factory the factory used to create a packet filter
   */
  void AddPacketFilter (ObjectFactory factory);

  /**
   * \brief Add a factory to create a queue disc class
   *
   * \param factory the factory used to create a queue disc class
   * \return the class ID of the created queue disc class
   */
  uint16_t AddQueueDiscClass (ObjectFactory factory);

  /**
   * \brief Set the (child) queue disc to attach to a class
   *
   * \param classId the id of the class to attach a child queue disc to
   * \param handle the handle of the child queue disc to attach to the class
   */
  void SetChildQueueDisc (uint16_t classId, uint16_t handle);

  /**
   * \brief Create a queue disc with the currently stored configuration.
   *
   * \param queueDiscs the vector of queue discs held by the helper
   * \return the created queue disc
   */
  Ptr<QueueDisc> CreateQueueDisc (const std::vector<Ptr<QueueDisc> > & queueDiscs);

private:
  /**
   * \brief Default constructor
   *
   * Defined and unimplemented to avoid misuse
   */
  QueueDiscFactory ();

  /// Factory to create this queue disc
  ObjectFactory m_queueDiscFactory;
  /// Vector of factories to create internal queues
  std::vector<ObjectFactory> m_internalQueuesFactory;
  /// Vector of factories to create packet filters
  std::vector<ObjectFactory> m_packetFiltersFactory;
  /// Vector of factories to create queue disc classes
  std::vector<ObjectFactory> m_queueDiscClassesFactory;
  /// Map storing the associations between class IDs and child queue disc handles
  std::map<uint16_t, uint16_t> m_classIdChildHandleMap;
};


/**
 * \ingroup traffic-control
 *
 * \brief Build a set of QueueDisc objects
 *
 * This class can help to create QueueDisc objects and map them to
 * the corresponding devices. This map is stored at the Traffic Control
 * layer.
 */
class TrafficControlHelper
{
public:
  /**
   * Create a TrafficControlHelper to make life easier when creating QueueDisc
   * objects.
   */
  TrafficControlHelper ();
  virtual ~TrafficControlHelper () {}

  /**
   * \returns a new TrafficControlHelper with a default configuration
   *
   * The default configuration is a PfifoFastQueueDisc with three internal queues
   * of type DropTailQueue and size 1000 packets.
   */
  static TrafficControlHelper Default (void);

  /**
   * Helper function used to set a root queue disc of the given type and with the
   * given attributes. To set the InternalQueueList, PacketFilterList and ChildQueueDiscList
   * attributes, use the AddInternalQueue, AddPacketFilter and AddChildQueueDisc methods.
   *
   * \param type the type of queue disc
   * \param n01 the name of the attribute to set on the queue disc
   * \param v01 the value of the attribute to set on the queue disc
   * \param n02 the name of the attribute to set on the queue disc
   * \param v02 the value of the attribute to set on the queue disc
   * \param n03 the name of the attribute to set on the queue disc
   * \param v03 the value of the attribute to set on the queue disc
   * \param n04 the name of the attribute to set on the queue disc
   * \param v04 the value of the attribute to set on the queue disc
   * \param n05 the name of the attribute to set on the queue disc
   * \param v05 the value of the attribute to set on the queue disc
   * \param n06 the name of the attribute to set on the queue disc
   * \param v06 the value of the attribute to set on the queue disc
   * \param n07 the name of the attribute to set on the queue disc
   * \param v07 the value of the attribute to set on the queue disc
   * \param n08 the name of the attribute to set on the queue disc
   * \param v08 the value of the attribute to set on the queue disc
   * \param n09 the name of the attribute to set on the queue disc
   * \param v09 the value of the attribute to set on the queue disc
   * \param n10 the name of the attribute to set on the queue disc
   * \param v10 the value of the attribute to set on the queue disc
   * \param n11 the name of the attribute to set on the queue disc
   * \param v11 the value of the attribute to set on the queue disc
   * \param n12 the name of the attribute to set on the queue disc
   * \param v12 the value of the attribute to set on the queue disc
   * \param n13 the name of the attribute to set on the queue disc
   * \param v13 the value of the attribute to set on the queue disc
   * \param n14 the name of the attribute to set on the queue disc
   * \param v14 the value of the attribute to set on the queue disc
   * \param n15 the name of the attribute to set on the queue disc
   * \param v15 the value of the attribute to set on the queue disc
   * \return the handle of the root queue disc (zero)
   */
  uint16_t SetRootQueueDisc (std::string type,
                             std::string n01 = "", const AttributeValue &v01 = EmptyAttributeValue (),
                             std::string n02 = "", const AttributeValue &v02 = EmptyAttributeValue (),
                             std::string n03 = "", const AttributeValue &v03 = EmptyAttributeValue (),
                             std::string n04 = "", const AttributeValue &v04 = EmptyAttributeValue (),
                             std::string n05 = "", const AttributeValue &v05 = EmptyAttributeValue (),
                             std::string n06 = "", const AttributeValue &v06 = EmptyAttributeValue (),
                             std::string n07 = "", const AttributeValue &v07 = EmptyAttributeValue (),
                             std::string n08 = "", const AttributeValue &v08 = EmptyAttributeValue (),
                             std::string n09 = "", const AttributeValue &v09 = EmptyAttributeValue (),
                             std::string n10 = "", const AttributeValue &v10 = EmptyAttributeValue (),
                             std::string n11 = "", const AttributeValue &v11 = EmptyAttributeValue (),
                             std::string n12 = "", const AttributeValue &v12 = EmptyAttributeValue (),
                             std::string n13 = "", const AttributeValue &v13 = EmptyAttributeValue (),
                             std::string n14 = "", const AttributeValue &v14 = EmptyAttributeValue (),
                             std::string n15 = "", const AttributeValue &v15 = EmptyAttributeValue ());

  /**
   * Helper function used to add the given number of internal queues (of the given
   * type and with the given attributes) to the queue disc having the given handle.
   *
   * \param handle the handle of the parent queue disc
   * \param count the number of queues to add
   * \param type the type of queue
   * \param n01 the name of the attribute to set on the queue
   * \param v01 the value of the attribute to set on the queue
   * \param n02 the name of the attribute to set on the queue
   * \param v02 the value of the attribute to set on the queue
   * \param n03 the name of the attribute to set on the queue
   * \param v03 the value of the attribute to set on the queue
   * \param n04 the name of the attribute to set on the queue
   * \param v04 the value of the attribute to set on the queue
   * \param n05 the name of the attribute to set on the queue
   * \param v05 the value of the attribute to set on the queue
   * \param n06 the name of the attribute to set on the queue
   * \param v06 the value of the attribute to set on the queue
   * \param n07 the name of the attribute to set on the queue
   * \param v07 the value of the attribute to set on the queue
   * \param n08 the name of the attribute to set on the queue
   * \param v08 the value of the attribute to set on the queue
   */
  void AddInternalQueues (uint16_t handle, uint16_t count, std::string type,
                          std::string n01 = "", const AttributeValue &v01 = EmptyAttributeValue (),
                          std::string n02 = "", const AttributeValue &v02 = EmptyAttributeValue (),
                          std::string n03 = "", const AttributeValue &v03 = EmptyAttributeValue (),
                          std::string n04 = "", const AttributeValue &v04 = EmptyAttributeValue (),
                          std::string n05 = "", const AttributeValue &v05 = EmptyAttributeValue (),
                          std::string n06 = "", const AttributeValue &v06 = EmptyAttributeValue (),
                          std::string n07 = "", const AttributeValue &v07 = EmptyAttributeValue (),
                          std::string n08 = "", const AttributeValue &v08 = EmptyAttributeValue ());

  /**
   * Helper function used to add a packet filter (of the given type and with
   * the given attributes) to the queue disc having the given handle.
   *
   * \param handle the handle of the parent queue disc
   * \param type the type of packet filter
   * \param n01 the name of the attribute to set on the packet filter
   * \param v01 the value of the attribute to set on the packet filter
   * \param n02 the name of the attribute to set on the packet filter
   * \param v02 the value of the attribute to set on the packet filter
   * \param n03 the name of the attribute to set on the packet filter
   * \param v03 the value of the attribute to set on the packet filter
   * \param n04 the name of the attribute to set on the packet filter
   * \param v04 the value of the attribute to set on the packet filter
   * \param n05 the name of the attribute to set on the packet filter
   * \param v05 the value of the attribute to set on the packet filter
   * \param n06 the name of the attribute to set on the packet filter
   * \param v06 the value of the attribute to set on the packet filter
   * \param n07 the name of the attribute to set on the packet filter
   * \param v07 the value of the attribute to set on the packet filter
   * \param n08 the name of the attribute to set on the packet filter
   * \param v08 the value of the attribute to set on the packet filter
   */
  void AddPacketFilter (uint16_t handle, std::string type,
                        std::string n01 = "", const AttributeValue &v01 = EmptyAttributeValue (),
                        std::string n02 = "", const AttributeValue &v02 = EmptyAttributeValue (),
                        std::string n03 = "", const AttributeValue &v03 = EmptyAttributeValue (),
                        std::string n04 = "", const AttributeValue &v04 = EmptyAttributeValue (),
                        std::string n05 = "", const AttributeValue &v05 = EmptyAttributeValue (),
                        std::string n06 = "", const AttributeValue &v06 = EmptyAttributeValue (),
                        std::string n07 = "", const AttributeValue &v07 = EmptyAttributeValue (),
                        std::string n08 = "", const AttributeValue &v08 = EmptyAttributeValue ());

  /**
   * Container type for Class IDs
   */
  typedef std::vector<uint16_t> ClassIdList;

  /**
   * Helper function used to add the given number of queue disc classes (of the given
   * type and with the given attributes) to the queue disc having the given handle.
   *
   * \param handle the handle of the parent queue disc
   * \param count the number of queue disc classes to add
   * \param type the type of queue disc class
   * \param n01 the name of the attribute to set on the queue disc class
   * \param v01 the value of the attribute to set on the queue disc class
   * \param n02 the name of the attribute to set on the queue disc class
   * \param v02 the value of the attribute to set on the queue disc class
   * \param n03 the name of the attribute to set on the queue disc class
   * \param v03 the value of the attribute to set on the queue disc class
   * \param n04 the name of the attribute to set on the queue disc class
   * \param v04 the value of the attribute to set on the queue disc class
   * \param n05 the name of the attribute to set on the queue disc class
   * \param v05 the value of the attribute to set on the queue disc class
   * \param n06 the name of the attribute to set on the queue disc class
   * \param v06 the value of the attribute to set on the queue disc class
   * \param n07 the name of the attribute to set on the queue disc class
   * \param v07 the value of the attribute to set on the queue disc class
   * \param n08 the name of the attribute to set on the queue disc class
   * \param v08 the value of the attribute to set on the queue disc class
   * \return the list of class IDs
   */
  ClassIdList AddQueueDiscClasses (uint16_t handle, uint16_t count, std::string type,
                                   std::string n01 = "", const AttributeValue &v01 = EmptyAttributeValue (),
                                   std::string n02 = "", const AttributeValue &v02 = EmptyAttributeValue (),
                                   std::string n03 = "", const AttributeValue &v03 = EmptyAttributeValue (),
                                   std::string n04 = "", const AttributeValue &v04 = EmptyAttributeValue (),
                                   std::string n05 = "", const AttributeValue &v05 = EmptyAttributeValue (),
                                   std::string n06 = "", const AttributeValue &v06 = EmptyAttributeValue (),
                                   std::string n07 = "", const AttributeValue &v07 = EmptyAttributeValue (),
                                   std::string n08 = "", const AttributeValue &v08 = EmptyAttributeValue ());

  /**
   * Helper function used to attach a child queue disc (of the given type and with
   * the given attributes) to a given class (included in the queue disc
   * having the given handle).
   *
   * \param handle the handle of the parent queue disc
   * \param classId the class ID of the class to attach the queue disc to
   * \param type the type of queue disc
   * \param n01 the name of the attribute to set on the queue disc
   * \param v01 the value of the attribute to set on the queue disc
   * \param n02 the name of the attribute to set on the queue disc
   * \param v02 the value of the attribute to set on the queue disc
   * \param n03 the name of the attribute to set on the queue disc
   * \param v03 the value of the attribute to set on the queue disc
   * \param n04 the name of the attribute to set on the queue disc
   * \param v04 the value of the attribute to set on the queue disc
   * \param n05 the name of the attribute to set on the queue disc
   * \param v05 the value of the attribute to set on the queue disc
   * \param n06 the name of the attribute to set on the queue disc
   * \param v06 the value of the attribute to set on the queue disc
   * \param n07 the name of the attribute to set on the queue disc
   * \param v07 the value of the attribute to set on the queue disc
   * \param n08 the name of the attribute to set on the queue disc
   * \param v08 the value of the attribute to set on the queue disc
   * \param n09 the name of the attribute to set on the queue disc
   * \param v09 the value of the attribute to set on the queue disc
   * \param n10 the name of the attribute to set on the queue disc
   * \param v10 the value of the attribute to set on the queue disc
   * \param n11 the name of the attribute to set on the queue disc
   * \param v11 the value of the attribute to set on the queue disc
   * \param n12 the name of the attribute to set on the queue disc
   * \param v12 the value of the attribute to set on the queue disc
   * \param n13 the name of the attribute to set on the queue disc
   * \param v13 the value of the attribute to set on the queue disc
   * \param n14 the name of the attribute to set on the queue disc
   * \param v14 the value of the attribute to set on the queue disc
   * \param n15 the name of the attribute to set on the queue disc
   * \param v15 the value of the attribute to set on the queue disc
   * \return the handle of the created child queue disc
   */
  uint16_t AddChildQueueDisc (uint16_t handle, uint16_t classId, std::string type,
                              std::string n01 = "", const AttributeValue &v01 = EmptyAttributeValue (),
                              std::string n02 = "", const AttributeValue &v02 = EmptyAttributeValue (),
                              std::string n03 = "", const AttributeValue &v03 = EmptyAttributeValue (),
                              std::string n04 = "", const AttributeValue &v04 = EmptyAttributeValue (),
                              std::string n05 = "", const AttributeValue &v05 = EmptyAttributeValue (),
                              std::string n06 = "", const AttributeValue &v06 = EmptyAttributeValue (),
                              std::string n07 = "", const AttributeValue &v07 = EmptyAttributeValue (),
                              std::string n08 = "", const AttributeValue &v08 = EmptyAttributeValue (),
                              std::string n09 = "", const AttributeValue &v09 = EmptyAttributeValue (),
                              std::string n10 = "", const AttributeValue &v10 = EmptyAttributeValue (),
                              std::string n11 = "", const AttributeValue &v11 = EmptyAttributeValue (),
                              std::string n12 = "", const AttributeValue &v12 = EmptyAttributeValue (),
                              std::string n13 = "", const AttributeValue &v13 = EmptyAttributeValue (),
                              std::string n14 = "", const AttributeValue &v14 = EmptyAttributeValue (),
                              std::string n15 = "", const AttributeValue &v15 = EmptyAttributeValue ());

  /**
   * Container type for Handlers
   */
  typedef std::vector<uint16_t> HandleList;

  /**
   * Helper function used to attach a child queue disc (of the given type and with
   * the given attributes) to each of the given classes (included in the queue disc
   * having the given handle).
   *
   * \param handle the handle of the parent queue disc
   * \param classes the class IDs of the classes to attach a queue disc to
   * \param type the type of queue disc
   * \param n01 the name of the attribute to set on the queue disc
   * \param v01 the value of the attribute to set on the queue disc
   * \param n02 the name of the attribute to set on the queue disc
   * \param v02 the value of the attribute to set on the queue disc
   * \param n03 the name of the attribute to set on the queue disc
   * \param v03 the value of the attribute to set on the queue disc
   * \param n04 the name of the attribute to set on the queue disc
   * \param v04 the value of the attribute to set on the queue disc
   * \param n05 the name of the attribute to set on the queue disc
   * \param v05 the value of the attribute to set on the queue disc
   * \param n06 the name of the attribute to set on the queue disc
   * \param v06 the value of the attribute to set on the queue disc
   * \param n07 the name of the attribute to set on the queue disc
   * \param v07 the value of the attribute to set on the queue disc
   * \param n08 the name of the attribute to set on the queue disc
   * \param v08 the value of the attribute to set on the queue disc
   * \param n09 the name of the attribute to set on the queue disc
   * \param v09 the value of the attribute to set on the queue disc
   * \param n10 the name of the attribute to set on the queue disc
   * \param v10 the value of the attribute to set on the queue disc
   * \param n11 the name of the attribute to set on the queue disc
   * \param v11 the value of the attribute to set on the queue disc
   * \param n12 the name of the attribute to set on the queue disc
   * \param v12 the value of the attribute to set on the queue disc
   * \param n13 the name of the attribute to set on the queue disc
   * \param v13 the value of the attribute to set on the queue disc
   * \param n14 the name of the attribute to set on the queue disc
   * \param v14 the value of the attribute to set on the queue disc
   * \param n15 the name of the attribute to set on the queue disc
   * \param v15 the value of the attribute to set on the queue disc
   * \return the list of handles of the created child queue discs
   */
  HandleList AddChildQueueDiscs (uint16_t handle, const ClassIdList &classes, std::string type,
                                 std::string n01 = "", const AttributeValue &v01 = EmptyAttributeValue (),
                                 std::string n02 = "", const AttributeValue &v02 = EmptyAttributeValue (),
                                 std::string n03 = "", const AttributeValue &v03 = EmptyAttributeValue (),
                                 std::string n04 = "", const AttributeValue &v04 = EmptyAttributeValue (),
                                 std::string n05 = "", const AttributeValue &v05 = EmptyAttributeValue (),
                                 std::string n06 = "", const AttributeValue &v06 = EmptyAttributeValue (),
                                 std::string n07 = "", const AttributeValue &v07 = EmptyAttributeValue (),
                                 std::string n08 = "", const AttributeValue &v08 = EmptyAttributeValue (),
                                 std::string n09 = "", const AttributeValue &v09 = EmptyAttributeValue (),
                                 std::string n10 = "", const AttributeValue &v10 = EmptyAttributeValue (),
                                 std::string n11 = "", const AttributeValue &v11 = EmptyAttributeValue (),
                                 std::string n12 = "", const AttributeValue &v12 = EmptyAttributeValue (),
                                 std::string n13 = "", const AttributeValue &v13 = EmptyAttributeValue (),
                                 std::string n14 = "", const AttributeValue &v14 = EmptyAttributeValue (),
                                 std::string n15 = "", const AttributeValue &v15 = EmptyAttributeValue ());

  /**
   * Helper function used to add a queue limits object to the transmission
   * queues of the devices
   *
   * \param type the type of queue
   * \param n01 the name of the attribute to set on the queue limits object
   * \param v01 the value of the attribute to set on the queue limits object
   * \param n02 the name of the attribute to set on the queue limits object
   * \param v02 the value of the attribute to set on the queue limits object
   * \param n03 the name of the attribute to set on the queue limits object
   * \param v03 the value of the attribute to set on the queue limits object
   * \param n04 the name of the attribute to set on the queue limits object
   * \param v04 the value of the attribute to set on the queue limits object
   * \param n05 the name of the attribute to set on the queue limits object
   * \param v05 the value of the attribute to set on the queue limits object
   * \param n06 the name of the attribute to set on the queue limits object
   * \param v06 the value of the attribute to set on the queue limits object
   * \param n07 the name of the attribute to set on the queue limits object
   * \param v07 the value of the attribute to set on the queue limits object
   * \param n08 the name of the attribute to set on the queue limits object
   * \param v08 the value of the attribute to set on the queue limits object
   */
  void SetQueueLimits (std::string type,
                       std::string n01 = "", const AttributeValue &v01 = EmptyAttributeValue (),
                       std::string n02 = "", const AttributeValue &v02 = EmptyAttributeValue (),
                       std::string n03 = "", const AttributeValue &v03 = EmptyAttributeValue (),
                       std::string n04 = "", const AttributeValue &v04 = EmptyAttributeValue (),
                       std::string n05 = "", const AttributeValue &v05 = EmptyAttributeValue (),
                       std::string n06 = "", const AttributeValue &v06 = EmptyAttributeValue (),
                       std::string n07 = "", const AttributeValue &v07 = EmptyAttributeValue (),
                       std::string n08 = "", const AttributeValue &v08 = EmptyAttributeValue ());

  /**
   * \param c set of devices
   * \returns a QueueDisc container with the queue discs installed on the devices
   *
   * This method creates a QueueDisc object of the type and with the
   * attributes configured by TrafficControlHelper::SetQueueDisc for
   * each device in the container. Then, stores the mapping between a
   * device and the associated queue disc into the traffic control layer
   * of the corresponding node.
   * This method creates the queue discs (along with their packet filters,
   * internal queues, classes) configured with the methods provided by this
   * class and installs them on each device in the given container. Additionally,
   * if configured, a queue limits object is installed on each transmission queue
   * of the devices.
   */
  QueueDiscContainer Install (NetDeviceContainer c);

  /**
   * \param d device
   * \returns a QueueDisc container with the queue discs installed on the device
   *
   * This method creates the queue discs (along with their packet filters,
   * internal queues, classes) configured with the methods provided by this
   * class and installs them on the given device. Additionally, if configured,
   * a queue limits object is installed on each transmission queue of the device.
   */
  QueueDiscContainer Install (Ptr<NetDevice> d);

  /**
   * \param c set of devices
   *
   * This method removes the root queue discs (and associated filters, classes
   * and queues) installed on the given devices.
   */
  void Uninstall (NetDeviceContainer c);

  /**
   * \param d device
   *
   * This method removes the root queue disc (and associated filters, classes
   * and queues) installed on the given device.
   */
  void Uninstall (Ptr<NetDevice> d);

private:
  /// QueueDisc factory, stores the configuration of all the queue discs
  std::vector<QueueDiscFactory> m_queueDiscFactory;
  /// Vector of all the created queue discs
  std::vector<Ptr<QueueDisc> > m_queueDiscs;
  /// Factory to create a queue limits object
  ObjectFactory m_queueLimitsFactory;
};

} // namespace ns3

#endif /* TRAFFIC_CONTROL_HELPER_H */