ns-3
|
#include <lte-mac-queue.h>
Classes | |
struct | QueueElement |
Public Member Functions | |
LteMacQueue (uint32_t maxSize) | |
void | SetMaxSize (uint32_t maxSize) |
set the maximum queue size | |
uint32_t | GetMaxSize (void) const |
bool | Enqueue (Ptr< Packet > packet) |
Enqueue a packet. | |
Ptr< Packet > | Dequeue (void) |
Dequeue a packet from the queue. | |
Ptr< Packet > | Dequeue (uint32_t availableByte) |
Dequeue a fragment of size availableByte from the queue. | |
Ptr< Packet > | Peek (void) const |
Same as Dequeue but does not pop from queue. | |
bool | IsEmpty (void) const |
Check if there are packets into the queue. | |
uint32_t | GetSize (void) const |
Get the size of the queue. | |
uint32_t | GetNBytes (void) const |
Get the number of bytes into the queue. | |
uint32_t | GetQueueLengthWithMACOverhead (void) |
Get the length of the queue with MAC + RLC + CRC overhead. | |
const LteMacQueue::PacketQueue & | GetPacketQueue (void) const |
Get the packet queue. | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::LteMacQueue. |
The MAC queue for each bearer
ns3::LteMacQueue::LteMacQueue | ( | uint32_t | maxSize | ) |
Create the Mac queue defining its maximum size
maxSize | the maximum size of the queue |
Ptr< Packet > ns3::LteMacQueue::Dequeue | ( | void | ) |
Dequeue a packet from the queue.
References IsEmpty(), and NS_LOG_FUNCTION.
Referenced by ns3::RadioBearerInstance::Dequeue().
Ptr< Packet > ns3::LteMacQueue::Dequeue | ( | uint32_t | availableByte | ) |
Dequeue a fragment of size availableByte from the queue.
availableByte | the size of the fragment |
References NS_LOG_FUNCTION.
bool ns3::LteMacQueue::Enqueue | ( | Ptr< Packet > | packet | ) |
Enqueue a packet.
packet | the packet to enqueue |
References ns3::Packet::GetSize(), ns3::Simulator::Now(), and NS_LOG_FUNCTION.
Referenced by ns3::RadioBearerInstance::Enqueue().
uint32_t ns3::LteMacQueue::GetMaxSize | ( | void | ) | const |
uint32_t ns3::LteMacQueue::GetNBytes | ( | void | ) | const |
Get the number of bytes into the queue.
References NS_LOG_FUNCTION.
Referenced by GetQueueLengthWithMACOverhead().
const LteMacQueue::PacketQueue & ns3::LteMacQueue::GetPacketQueue | ( | void | ) | const |
uint32_t ns3::LteMacQueue::GetQueueLengthWithMACOverhead | ( | void | ) |
Get the length of the queue with MAC + RLC + CRC overhead.
References GetNBytes(), GetSize(), and NS_LOG_FUNCTION.
uint32_t ns3::LteMacQueue::GetSize | ( | void | ) | const |
Get the size of the queue.
References NS_LOG_FUNCTION.
Referenced by GetQueueLengthWithMACOverhead().
TypeId ns3::LteMacQueue::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::LteMacQueue.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
TraceSources defined for this type:
Reimplemented from ns3::Object.
References GetMaxSize(), ns3::MakeTraceSourceAccessor(), SetMaxSize(), and ns3::TypeId::SetParent().
void ns3::LteMacQueue::SetMaxSize | ( | uint32_t | maxSize | ) |
set the maximum queue size
maxSize | the max queue size |
References NS_LOG_FUNCTION.
Referenced by GetTypeId().