5G-LENA nr-v3.0-32-g83aee33
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/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
3// Copyright (c) 2020 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4//
5// SPDX-License-Identifier: GPL-2.0-only
6
7#ifndef SYSTEM_SCHEDULER_TEST_H
8#define SYSTEM_SCHEDULER_TEST_H
9
10#include <ns3/ptr.h>
11#include <ns3/test.h>
12
13namespace ns3
14{
15
16class Packet;
17
35class SystemSchedulerTest : public TestCase
36{
37 public:
52 SystemSchedulerTest(const std::string& name,
53 uint32_t usersPerNumOfBeams,
54 uint32_t numOfBeams,
55 uint32_t numerology,
56 double bw1,
57 bool isDownlink,
58 bool isUplink,
59 const std::string& schedulerType);
63 ~SystemSchedulerTest() override;
64
65 private:
66 void DoRun() override;
67 void CountPkts(Ptr<const Packet> pkt);
68
69 uint32_t m_numerology;
70 double m_bw1;
71 bool m_isDownlink;
72 bool m_isUplink;
73 uint32_t m_usersPerBeamNum;
74 uint32_t m_numOfBeams;
75 std::string m_schedulerType;
76 std::string m_name;
77 uint32_t m_packets{0};
78 uint32_t m_limit{0};
79};
80
81} // namespace ns3
82#endif // SYSTEM_SCHEDULER_TEST_H
Main class for testing a scheduler, system-wise.
~SystemSchedulerTest() override
~SystemSchedulerTest