Sort metric which sorts a vector available RC indices based on "unallocated load". More...
#include "satellite-ut-scheduler.h"
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 |
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 51 of file satellite-ut-scheduler.h.
|
inline |
Sort a vector available RC indices based on unallocated load.
m | Vector to be sorted. |
Definition at line 58 of file satellite-ut-scheduler.h.
|
inline |
Operator overload for function call.
p1 | Index of value in vector |
p2 | Index of value in vector |
Definition at line 70 of file satellite-ut-scheduler.h.
References m_cont.
|
private |
Definition at line 76 of file satellite-ut-scheduler.h.
Referenced by operator()().