27 #include "ns3/uinteger.h" 
   28 #include "ns3/simulator.h" 
   29 #include "ns3/string.h" 
   48     .SetParent<QueueLimits> ()
 
   49     .SetGroupName (
"Network")
 
   51     .AddAttribute (
"HoldTime",
 
   52                    "The DQL algorithm hold time",
 
   56     .AddAttribute (
"MaxLimit",
 
   61     .AddAttribute (
"MinLimit",
 
   65                    MakeUintegerChecker<uint32_t> ())
 
   66     .AddTraceSource (
"Limit",
 
   67                      "Limit value calculated by DQL",
 
   69                      "ns3::TracedValueCallback::Uint32")
 
  105   uint32_t inprogress, prevInprogress, limit;
 
  106   uint32_t ovlimit, completed, numQueued;
 
  107   bool allPrevCompleted;
 
  117   inprogress = numQueued - completed;
 
  121   if ((ovlimit && !inprogress) || (
m_prevOvlimit && allPrevCompleted))
 
  143   else if (inprogress && prevInprogress && !allPrevCompleted)
 
  145       NS_LOG_DEBUG (
"Queue not starved, check decrease limit");
 
  157       uint32_t slack, slackLastObjs;
 
  173       slack = 
std::max (slack, slackLastObjs);
 
  201   m_numCompleted = completed;
 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
 
Time m_slackStartTime
Time slacks seen. 
 
virtual void Completed(uint32_t count)
Record number of completed bytes and recalculate the limit. 
 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system. 
 
Hold variables of type string. 
 
uint32_t m_adjLimit
limit + num_completed 
 
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
int32_t Posdiff(int32_t a, int32_t b)
Calculates the difference between the two operators and returns the number if positive, zero otherwise. 
 
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source. 
 
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range. 
 
virtual int32_t Available() const 
Available is called from NotifyTransmittedBytes to calculate the number of bytes that can be passed a...
 
TracedValue< uint32_t > m_limit
Current limit. 
 
static const uint32_t DQL_MAX_LIMIT
 
Hold an unsigned integer type. 
 
static const uint32_t UINTMAX
 
uint32_t m_minLimit
Minimum limit. 
 
static const uint32_t DQL_MAX_OBJECT
 
uint32_t m_prevNumQueued
Previous queue total. 
 
virtual void Reset()
Reset queue limits state. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
uint32_t m_lowestSlack
Lowest slack found. 
 
uint32_t m_numCompleted
Total ever completed. 
 
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
 
uint32_t m_numQueued
Total ever queued. 
 
static Time Now(void)
Return the current simulation virtual time. 
 
uint32_t m_lastObjCnt
Count at last queuing. 
 
uint32_t m_prevOvlimit
Previous over limit. 
 
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG. 
 
static TypeId GetTypeId(void)
Get the type ID. 
 
virtual void Queued(uint32_t count)
Record the number of bytes queued. 
 
uint32_t m_maxLimit
Max limit. 
 
A base class which provides memory management and object aggregation. 
 
Time m_slackHoldTime
Time to measure slack. 
 
DynamicQueueLimits would be used in conjunction with a producer/consumer type queue (possibly a netde...
 
virtual ~DynamicQueueLimits()
 
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
 
a unique identifier for an interface. 
 
TypeId SetParent(TypeId tid)
Set the parent TypeId. 
 
uint32_t m_prevLastObjCnt
Previous queuing cnt.