5G-LENA nr-v3.1-69-g2dd513a7
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
system-scheduler-test.h
Go to the documentation of this file.
1// Copyright (c) 2020 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
2//
3// SPDX-License-Identifier: GPL-2.0-only
4
5#ifndef SYSTEM_SCHEDULER_TEST_H
6#define SYSTEM_SCHEDULER_TEST_H
7
8#include <ns3/ptr.h>
9#include <ns3/test.h>
10
11namespace ns3
12{
13
14class Packet;
15
33class SystemSchedulerTest : public TestCase
34{
35 public:
50 SystemSchedulerTest(const std::string& name,
51 uint32_t usersPerNumOfBeams,
52 uint32_t numOfBeams,
53 uint32_t numerology,
54 double bw1,
55 bool isDownlink,
56 bool isUplink,
57 const std::string& schedulerType);
61 ~SystemSchedulerTest() override;
62
63 private:
64 void DoRun() override;
65 void CountPkts(Ptr<const Packet> pkt);
66
67 uint32_t m_numerology;
68 double m_bw1;
69 bool m_isDownlink;
70 bool m_isUplink;
71 uint32_t m_usersPerBeamNum;
72 uint32_t m_numOfBeams;
73 std::string m_schedulerType;
74 std::string m_name;
75 uint32_t m_packets{0};
76 uint32_t m_limit{0};
77};
78
79} // namespace ns3
80#endif // SYSTEM_SCHEDULER_TEST_H
Main class for testing a scheduler, system-wise.
~SystemSchedulerTest() override
~SystemSchedulerTest