ns3::SortByMetric Class Reference

Sort metric which sorts a vector available RC indices based on "unallocated load". More...

#include "satellite-ut-scheduler.h"

+ Collaboration diagram for ns3::SortByMetric:

Public Member Functions

 SortByMetric (const std::vector< uint32_t > &m)
 Sort a vector available RC indices based on unallocated load. More...
 
bool operator() (uint8_t p1, uint8_t p2)
 Operator overload for function call. More...
 

Private Attributes

const std::vector< uint32_t > & m_cont
 

Detailed Description

Sort metric which sorts a vector available RC indices based on "unallocated load".

Unallocated load is a the amount of bytes scheduled for UT which was not indicated by NCC scheduler in TBTP. The UT scheduler tries to obey the scheduling decisions made by NCC, and otherwise it tries to be byte-wise fair. TODO: There possibly would need to be some forgetting factor or sliding window not to remember too old samples.

Definition at line 50 of file satellite-ut-scheduler.h.

Constructor & Destructor Documentation

◆ SortByMetric()

ns3::SortByMetric::SortByMetric ( const std::vector< uint32_t > &  m)
inline

Sort a vector available RC indices based on unallocated load.

Parameters
mVector to be sorted.

Definition at line 57 of file satellite-ut-scheduler.h.

Member Function Documentation

◆ operator()()

bool ns3::SortByMetric::operator() ( uint8_t  p1,
uint8_t  p2 
)
inline

Operator overload for function call.

Parameters
p1Index of value in vector
p2Index of value in vector
Returns
True, if value at first index was smaller than value at second index, otherwise false.

Definition at line 69 of file satellite-ut-scheduler.h.

References m_cont.

Member Data Documentation

◆ m_cont

const std::vector<uint32_t>& ns3::SortByMetric::m_cont
private

Definition at line 75 of file satellite-ut-scheduler.h.

Referenced by operator()().


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