ns3::DropTailQueue Class Reference
[Queue]

A FIFO packet queue that drops tail-end packets on overflow. More...

#include <drop-tail-queue.h>

Inheritance diagram for ns3::DropTailQueue:

Inheritance graph
[legend]
Collaboration diagram for ns3::DropTailQueue:

Collaboration graph
[legend]

List of all members.

Public Types

enum  Mode { ILLEGAL, PACKETS, BYTES }

Public Member Functions

 DropTailQueue ()
 DropTailQueue Constructor.
void SetMode (DropTailQueue::Mode mode)
DropTailQueue::Mode GetMode (void)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::DropTailQueue.


Detailed Description

A FIFO packet queue that drops tail-end packets on overflow.

Member Enumeration Documentation

Enumeration of the modes supported in the class.

Enumerator:
ILLEGAL  Mode not set
PACKETS  Use number of packets for maximum queue size
BYTES  Use number of bytes for maximum queue size


Constructor & Destructor Documentation

ns3::DropTailQueue::DropTailQueue (  ) 

DropTailQueue Constructor.

Creates a droptail queue with a maximum size of 100 packets by default


Member Function Documentation

DropTailQueue::Mode ns3::DropTailQueue::GetMode ( void   ) 

Get the encapsulation mode of this device.

Returns:
The encapsulation mode of this device.

static TypeId ns3::DropTailQueue::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::DropTailQueue.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::CsmaNetDevice/TxQueue/$ns3::DropTailQueue
  • /NodeList/[i]/DeviceList/[i]/$ns3::EmuNetDevice/TxQueue/$ns3::DropTailQueue
  • /NodeList/[i]/DeviceList/[i]/$ns3::PointToPointNetDevice/TxQueue/$ns3::DropTailQueue
Attributes defined for this type:
  • Mode: Whether to use Bytes (see MaxBytes) or Packets (see MaxPackets) as the maximum queue size metric.
    • Set with class: ns3::EnumValue
    • Underlying type: Bytes|Packets
    • Initial value: Packets
    • Flags: construct write
  • MaxPackets: The maximum number of packets accepted by this DropTailQueue.
  • MaxBytes: The maximum number of bytes accepted by this DropTailQueue.
No TraceSources defined for this type.
TraceSources defined in parent class ns3::Queue:
  • Enqueue: Enqueue a packet in the queue.
  • Dequeue: Dequeue a packet from the queue.
  • Drop: Drop a packet stored in the queue.

Reimplemented from ns3::Queue.

void ns3::DropTailQueue::SetMode ( DropTailQueue::Mode  mode  ) 

Set the operating mode of this device.

Parameters:
mode The operating mode of this device.


The documentation for this class was generated from the following files:

Generated on Fri Apr 9 15:01:10 2010 for NS-3 by  doxygen 1.5.8