OLD | NEW |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 11 matching lines...) Expand all Loading... |
22 #define LENA_TEST_RR_FF_MAC_SCHEDULER_H | 22 #define LENA_TEST_RR_FF_MAC_SCHEDULER_H |
23 | 23 |
24 #include "ns3/simulator.h" | 24 #include "ns3/simulator.h" |
25 #include "ns3/test.h" | 25 #include "ns3/test.h" |
26 | 26 |
27 | 27 |
28 using namespace ns3; | 28 using namespace ns3; |
29 | 29 |
30 | 30 |
31 /** | 31 /** |
| 32 * \ingroup lte-test |
| 33 * \ingroup tests |
| 34 * |
| 35 * \brief This system test program creates different test cases with a single eN
B and· |
32 * This system test program creates different test cases with a single eNB and· | 36 * This system test program creates different test cases with a single eNB and· |
33 * several UEs, all having the same Radio Bearer specification. In each test· | 37 * several UEs, all having the same Radio Bearer specification. In each test· |
34 * case, the UEs see the same SINR from the eNB; different test cases are· | 38 * case, the UEs see the same SINR from the eNB; different test cases are· |
35 * implemented obtained by using different SINR values and different numbers of· | 39 * implemented obtained by using different SINR values and different numbers of· |
36 * UEs. The test consists on checking that the obtained throughput performance· | 40 * UEs. The test consists on checking that the obtained throughput performance· |
37 * is equal among users and matches a reference throughput value within a given· | 41 * is equal among users and matches a reference throughput value within a given· |
38 * tolerance. | 42 * tolerance. |
39 */ | 43 */ |
40 class LenaRrFfMacSchedulerTestCase : public TestCase | 44 class LenaRrFfMacSchedulerTestCase : public TestCase |
41 { | 45 { |
42 public: | 46 public: |
| 47 /** |
| 48 * Constructor |
| 49 * |
| 50 * \param nUser the number of UE nodes |
| 51 * \param dist the distance between nodes |
| 52 * \param thrRefDl the DL throughput reference |
| 53 * \param thrRefUl the UL throughput reference |
| 54 * \param errorModelEnabled if true the error model is enabled |
| 55 */ |
43 LenaRrFfMacSchedulerTestCase (uint16_t nUser, double dist, double thrRefDl, do
uble thrRefUl, bool errorModelEnabled); | 56 LenaRrFfMacSchedulerTestCase (uint16_t nUser, double dist, double thrRefDl, do
uble thrRefUl, bool errorModelEnabled); |
44 virtual ~LenaRrFfMacSchedulerTestCase (); | 57 virtual ~LenaRrFfMacSchedulerTestCase (); |
45 | 58 |
46 private: | 59 private: |
47 virtual void DoRun (void); | 60 virtual void DoRun (void); |
| 61 /** |
| 62 * Build name string |
| 63 * \param nUser the number of UE nodes |
| 64 * \param dist the distnace between nodes |
| 65 * \returns the name string |
| 66 */ |
48 static std::string BuildNameString (uint16_t nUser, double dist); | 67 static std::string BuildNameString (uint16_t nUser, double dist); |
49 uint16_t m_nUser; | 68 uint16_t m_nUser; ///< number of UE nodes |
50 double m_dist; | 69 double m_dist; ///< the distance between nodes |
51 double m_thrRefDl; | 70 double m_thrRefDl; ///< the DL throughput reference |
52 double m_thrRefUl; | 71 double m_thrRefUl; ///< the UL throughput reference |
53 bool m_errorModelEnabled; | 72 bool m_errorModelEnabled; ///< is error model enabled? |
54 | 73 |
55 }; | 74 }; |
56 | 75 |
57 | 76 |
58 | 77 |
| 78 /** |
| 79 * \ingroup lte-test |
| 80 * \ingroup tests |
| 81 * |
| 82 * \brief Lena Test RrFf Mac Scheduler Suite |
| 83 */ |
59 class LenaTestRrFfMacSchedulerSuite : public TestSuite | 84 class LenaTestRrFfMacSchedulerSuite : public TestSuite |
60 { | 85 { |
61 public: | 86 public: |
62 LenaTestRrFfMacSchedulerSuite (); | 87 LenaTestRrFfMacSchedulerSuite (); |
63 }; | 88 }; |
64 | 89 |
65 #endif /* LENA_TEST_RR_FF_MAC_SCHEDULER_H */ | 90 #endif /* LENA_TEST_RR_FF_MAC_SCHEDULER_H */ |
OLD | NEW |