5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
nr-test-scheduler-ai.cc File Reference

Unit-testing for the scheduler AI. The test checks that the scheduler is created correctly. More...

#include "ns3/beam-id.h"
#include "ns3/callback.h"
#include "ns3/node.h"
#include "ns3/nr-control-messages.h"
#include "ns3/nr-eps-bearer.h"
#include "ns3/nr-gnb-mac.h"
#include "ns3/nr-mac-sched-sap.h"
#include "ns3/nr-mac-scheduler-ns3.h"
#include "ns3/nr-mac-scheduler-ofdma-ai.h"
#include "ns3/nr-mac-scheduler-tdma-ai.h"
#include "ns3/nr-mac-scheduler-ue-info-ai.h"
#include "ns3/nr-phy-sap.h"
#include "ns3/object-factory.h"
#include "ns3/test.h"
#include <algorithm>
#include <unordered_set>
+ Include dependency graph for nr-test-scheduler-ai.cc:

Go to the source code of this file.

Variables

static NrTestSchedulerAiSuite ns3::nrTestSchedulerAiSuite
 RL-based scheduler test suite.
 

Detailed Description

Unit-testing for the scheduler AI. The test checks that the scheduler is created correctly.

This unit test is designed to verify the functionality of the callback used for invoking the ns3-gym module during the resource assigning process of an AI scheduler. The test defines a custom callback and checks whether the information passed as arguments matches the information of the User Equipment (UE) and the associated flow installed in each UE. Specifically, the test involves three UEs, each containing flow information corresponding to 5QI values of 1, 3, and 9, respectively. The test ensures that the callback receives the correct flow and UE details, confirming the proper interaction between the AI scheduler and the gym environment.

Definition in file nr-test-scheduler-ai.cc.

Variable Documentation

◆ nrTestSchedulerAiSuite

NrTestSchedulerAiSuite ns3::nrTestSchedulerAiSuite
static

RL-based scheduler test suite.

Definition at line 402 of file nr-test-scheduler-ai.cc.