LEFT | RIGHT |
(no file at all) | |
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) 2017 Alexander Krotov | 3 * Copyright (c) 2017 Alexander Krotov |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 { | 55 { |
56 public: | 56 public: |
57 /** | 57 /** |
58 * \brief Creates an instance of the initial cell selection test case. | 58 * \brief Creates an instance of the initial cell selection test case. |
59 * \param name name of this test | 59 * \param name name of this test |
60 * \param isIdealRrc if true, simulation uses Ideal RRC protocol, otherwise | 60 * \param isIdealRrc if true, simulation uses Ideal RRC protocol, otherwise |
61 * simulation uses Real RRC protocol | 61 * simulation uses Real RRC protocol |
62 * \param rngRun the number of run to be used by the random number generator | 62 * \param rngRun the number of run to be used by the random number generator |
63 * \param numberOfComponentCarriers number of component carriers | 63 * \param numberOfComponentCarriers number of component carriers |
64 */ | 64 */ |
65 LteSecondaryCellSelectionTestCase (std::string name, bool isIdealRrc, int64_t
rngRun, uint8_t numberOfComponentCarriers); | 65 LteSecondaryCellSelectionTestCase (std::string name, bool isIdealRrc, uint64_t
rngRun, uint8_t numberOfComponentCarriers); |
66 | 66 |
67 virtual ~LteSecondaryCellSelectionTestCase (); | 67 virtual ~LteSecondaryCellSelectionTestCase (); |
68 | 68 |
69 private: | 69 private: |
70 /** | 70 /** |
71 * \brief Setup the simulation according to the configuration set by the | 71 * \brief Setup the simulation according to the configuration set by the |
72 * class constructor, run it, and verify the result. | 72 * class constructor, run it, and verify the result. |
73 */ | 73 */ |
74 virtual void DoRun (); | 74 virtual void DoRun (); |
75 | 75 |
(...skipping 21 matching lines...) Expand all Loading... |
97 * \brief Connection established callback function | 97 * \brief Connection established callback function |
98 * \param context the context string | 98 * \param context the context string |
99 * \param imsi the IMSI | 99 * \param imsi the IMSI |
100 * \param cellId the cell ID | 100 * \param cellId the cell ID |
101 * \param rnti the RNTI | 101 * \param rnti the RNTI |
102 */ | 102 */ |
103 void ConnectionEstablishedCallback (std::string context, uint64_t imsi, | 103 void ConnectionEstablishedCallback (std::string context, uint64_t imsi, |
104 uint16_t cellId, uint16_t rnti); | 104 uint16_t cellId, uint16_t rnti); |
105 | 105 |
106 bool m_isIdealRrc; ///< whether the LTE is configured to use ideal RRC | 106 bool m_isIdealRrc; ///< whether the LTE is configured to use ideal RRC |
107 int64_t m_rngRun; ///< rng run | 107 uint64_t m_rngRun; ///< rng run |
108 uint8_t m_numberOfComponentCarriers; ///< number of component carriers | 108 uint8_t m_numberOfComponentCarriers; ///< number of component carriers |
109 | 109 |
110 /// The current UE RRC state. | 110 /// The current UE RRC state. |
111 std::map<uint64_t, LteUeRrc::State> m_lastState; | 111 std::map<uint64_t, LteUeRrc::State> m_lastState; |
112 | 112 |
113 }; // end of class LteSecondaryCellSelectionTestCase | 113 }; // end of class LteSecondaryCellSelectionTestCase |
114 | 114 |
115 #endif /* LTE_TEST_SECONDARY_CELL_SELECTION_H */ | 115 #endif /* LTE_TEST_SECONDARY_CELL_SELECTION_H */ |
LEFT | RIGHT |