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 10 matching lines...) Expand all Loading... |
21 #ifndef LTE_TEST_LINK_ADAPTATION_H | 21 #ifndef LTE_TEST_LINK_ADAPTATION_H |
22 #define LTE_TEST_LINK_ADAPTATION_H | 22 #define LTE_TEST_LINK_ADAPTATION_H |
23 | 23 |
24 #include "ns3/test.h" | 24 #include "ns3/test.h" |
25 | 25 |
26 | 26 |
27 using namespace ns3; | 27 using namespace ns3; |
28 | 28 |
29 | 29 |
30 /** | 30 /** |
31 * Test 1.3 Link adaptation | 31 * \ingroup lte-test |
| 32 * \ingroup tests |
| 33 * |
| 34 * \brief Test 1.3 Link adaptation |
32 */ | 35 */ |
33 class LteLinkAdaptationTestSuite : public TestSuite | 36 class LteLinkAdaptationTestSuite : public TestSuite |
34 { | 37 { |
35 public: | 38 public: |
36 LteLinkAdaptationTestSuite (); | 39 LteLinkAdaptationTestSuite (); |
37 }; | 40 }; |
38 | 41 |
39 | 42 |
| 43 /** |
| 44 * \ingroup lte-test |
| 45 * \ingroup tests |
| 46 * |
| 47 * \brief Lte Link Adaptation Test Case |
| 48 */ |
40 class LteLinkAdaptationTestCase : public TestCase | 49 class LteLinkAdaptationTestCase : public TestCase |
41 { | 50 { |
42 public: | 51 public: |
| 52 /** |
| 53 * Constructor |
| 54 * |
| 55 * \param name the reference name |
| 56 * \param snrDb the SNR in dB |
| 57 * \param loss the loss |
| 58 * \param mcsIndex the DL se |
| 59 */ |
43 LteLinkAdaptationTestCase (std::string name, double snrDb, double loss, uint16
_t mcsIndex); | 60 LteLinkAdaptationTestCase (std::string name, double snrDb, double loss, uint16
_t mcsIndex); |
44 LteLinkAdaptationTestCase (); | 61 LteLinkAdaptationTestCase (); |
45 virtual ~LteLinkAdaptationTestCase (); | 62 virtual ~LteLinkAdaptationTestCase (); |
46 | 63 |
| 64 /** |
| 65 * \brief DL scheduling function |
| 66 * \param dlInfo the DL info |
| 67 */ |
47 void DlScheduling (DlSchedulingCallbackInfo dlInfo); | 68 void DlScheduling (DlSchedulingCallbackInfo dlInfo); |
48 | 69 |
49 private: | 70 private: |
50 virtual void DoRun (void); | 71 virtual void DoRun (void); |
51 | 72 |
52 double m_snrDb; | 73 double m_snrDb; ///< the SNR in dB |
53 double m_loss; | 74 double m_loss; ///< the loss |
54 uint16_t m_mcsIndex; | 75 uint16_t m_mcsIndex; ///< the MCS index |
55 }; | 76 }; |
56 | 77 |
57 #endif /* LTE_TEST_LINK_ADAPTATION_H */ | 78 #endif /* LTE_TEST_LINK_ADAPTATION_H */ |
OLD | NEW |