lte: Move common typedefs in scheduler classes to parent class

This commit is contained in:
Eduardo Almeida
2023-04-30 19:15:40 +00:00
parent d316031258
commit 72c2619897
12 changed files with 23 additions and 117 deletions

View File

@@ -45,21 +45,6 @@
namespace ns3
{
/// DL HARQ process status vector typedef
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
/// DL HARQ process timer vector typedef
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
/// DL HARQ process DCI buffer vector typedef
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
/// vector of the LCs and layers per UE
typedef std::vector<std::vector<RlcPduListElement_s>> RlcPduList_t;
/// vector of the 8 HARQ processes per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t;
/// UL HARQ process DCI buffer vector
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
/// UL HARQ process status vector
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/// CGA Flow Performance structure
struct CqasFlowPerf_t
{

View File

@@ -42,16 +42,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; // vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t; // vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/// fdbetsFlowPerf_t structure
struct fdbetsFlowPerf_t
{

View File

@@ -47,17 +47,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; ///< vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t>
DlHarqRlcPduListBuffer_t; ///< vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/**
* \ingroup ff-api
* \brief Implements the SCHED SAP and CSCHED SAP for a Frequency Domain Maximize Throughput

View File

@@ -46,17 +46,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; ///< vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t>
DlHarqRlcPduListBuffer_t; ///< vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/**
* Flow information
*/

View File

@@ -21,6 +21,8 @@
#ifndef FF_MAC_SCHEDULER_H
#define FF_MAC_SCHEDULER_H
#include "ff-mac-common.h"
#include <ns3/object.h>
namespace ns3
@@ -38,6 +40,27 @@ class LteFfrSapUser;
* \defgroup ff-api FF MAC Schedulers
*/
/// DL HARQ process status vector
using DlHarqProcessesStatus_t = std::vector<uint8_t>;
/// DL HARQ process timer vector
using DlHarqProcessesTimer_t = std::vector<uint8_t>;
/// DL HARQ process DCI buffer vector
using DlHarqProcessesDciBuffer_t = std::vector<DlDciListElement_s>;
/// Vector of the LCs and layers per UE
using RlcPduList_t = std::vector<std::vector<RlcPduListElement_s>>;
/// Vector of the 8 HARQ processes per UE
using DlHarqRlcPduListBuffer_t = std::vector<RlcPduList_t>;
/// UL HARQ process DCI buffer vector
using UlHarqProcessesDciBuffer_t = std::vector<UlDciListElement_s>;
/// UL HARQ process status vector
using UlHarqProcessesStatus_t = std::vector<uint8_t>;
/**
* \ingroup ff-api
*

View File

@@ -41,16 +41,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; // vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t; // vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/// pfsFlowPerf_t structure
struct pfsFlowPerf_t
{

View File

@@ -42,16 +42,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; // vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t; // vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/**
* Flow information
*/

View File

@@ -37,16 +37,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; // vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t; // vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/**
* \ingroup ff-api
* \brief Implements the SCHED SAP and CSCHED SAP for a Round Robin scheduler

View File

@@ -42,16 +42,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; // vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t; // vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/// tdbetsFlowPerf_t structure
struct tdbetsFlowPerf_t
{

View File

@@ -43,16 +43,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; // vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t; // vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/**
* \ingroup ff-api
* \brief Implements the SCHED SAP and CSCHED SAP for a Time Domain Maximize Throughput scheduler

View File

@@ -42,16 +42,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; // vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t; // vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/**
* Flow information
*/

View File

@@ -43,16 +43,6 @@
namespace ns3
{
typedef std::vector<uint8_t> DlHarqProcessesStatus_t;
typedef std::vector<uint8_t> DlHarqProcessesTimer_t;
typedef std::vector<DlDciListElement_s> DlHarqProcessesDciBuffer_t;
typedef std::vector<std::vector<RlcPduListElement_s>>
RlcPduList_t; // vector of the LCs and layers per UE
typedef std::vector<RlcPduList_t> DlHarqRlcPduListBuffer_t; // vector of the 8 HARQ processes per UE
typedef std::vector<UlDciListElement_s> UlHarqProcessesDciBuffer_t;
typedef std::vector<uint8_t> UlHarqProcessesStatus_t;
/**
* \ingroup ff-api
* \brief Implements the SCHED SAP and CSCHED SAP for a Throughput to Average scheduler