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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 DlSchedulingCallbackInfo dlInfo) | 49 DlSchedulingCallbackInfo dlInfo) |
50 { | 50 { |
51 testcase->DlScheduling (dlInfo); | 51 testcase->DlScheduling (dlInfo); |
52 } | 52 } |
53 | 53 |
54 void | 54 void |
55 LteTestUlSchedulingCallback (LteInterferenceTestCase *testcase, std::string path
, | 55 LteTestUlSchedulingCallback (LteInterferenceTestCase *testcase, std::string path
, |
56 uint32_t frameNo, uint32_t subframeNo, uint16_t rnt
i, | 56 uint32_t frameNo, uint32_t subframeNo, uint16_t rnt
i, |
57 uint8_t mcs, uint16_t sizeTb, uint8_t ccId) | 57 uint8_t mcs, uint16_t sizeTb, uint8_t ccId) |
58 { | 58 { |
| 59 NS_UNUSED (ccId); |
59 testcase->UlScheduling (frameNo, subframeNo, rnti, mcs, sizeTb); | 60 testcase->UlScheduling (frameNo, subframeNo, rnti, mcs, sizeTb); |
60 } | 61 } |
61 | 62 |
62 | 63 |
63 /** | 64 /** |
64 * TestSuite | 65 * TestSuite |
65 */ | 66 */ |
66 | 67 |
67 LteInterferenceTestSuite::LteInterferenceTestSuite () | 68 LteInterferenceTestSuite::LteInterferenceTestSuite () |
68 : TestSuite ("lte-interference", SYSTEM) | 69 : TestSuite ("lte-interference", SYSTEM) |
(...skipping 27 matching lines...) Expand all Loading... |
96 | 97 |
97 LteInterferenceTestCase::LteInterferenceTestCase (std::string name, double d1, d
ouble d2, double dlSinr, double ulSinr, double dlSe, double ulSe, uint16_t dlMcs
, uint16_t ulMcs) | 98 LteInterferenceTestCase::LteInterferenceTestCase (std::string name, double d1, d
ouble d2, double dlSinr, double ulSinr, double dlSe, double ulSe, uint16_t dlMcs
, uint16_t ulMcs) |
98 : TestCase (name), | 99 : TestCase (name), |
99 m_d1 (d1), | 100 m_d1 (d1), |
100 m_d2 (d2), | 101 m_d2 (d2), |
101 m_expectedDlSinrDb (10 * std::log10 (dlSinr)), | 102 m_expectedDlSinrDb (10 * std::log10 (dlSinr)), |
102 m_expectedUlSinrDb (10 * std::log10 (ulSinr)), | 103 m_expectedUlSinrDb (10 * std::log10 (ulSinr)), |
103 m_dlMcs (dlMcs), | 104 m_dlMcs (dlMcs), |
104 m_ulMcs (ulMcs) | 105 m_ulMcs (ulMcs) |
105 { | 106 { |
| 107 NS_UNUSED (dlSe); |
| 108 NS_UNUSED (ulSe); |
106 } | 109 } |
107 | 110 |
108 LteInterferenceTestCase::~LteInterferenceTestCase () | 111 LteInterferenceTestCase::~LteInterferenceTestCase () |
109 { | 112 { |
110 } | 113 } |
111 | 114 |
112 void | 115 void |
113 LteInterferenceTestCase::DoRun (void) | 116 LteInterferenceTestCase::DoRun (void) |
114 { | 117 { |
115 NS_LOG_INFO (this << GetName ()); | 118 NS_LOG_INFO (this << GetName ()); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 LteInterferenceTestCase::UlScheduling (uint32_t frameNo, uint32_t subframeNo, ui
nt16_t rnti, | 259 LteInterferenceTestCase::UlScheduling (uint32_t frameNo, uint32_t subframeNo, ui
nt16_t rnti, |
257 uint8_t mcs, uint16_t sizeTb) | 260 uint8_t mcs, uint16_t sizeTb) |
258 { | 261 { |
259 NS_LOG_FUNCTION (frameNo << subframeNo << rnti << (uint32_t) mcs << sizeTb); | 262 NS_LOG_FUNCTION (frameNo << subframeNo << rnti << (uint32_t) mcs << sizeTb); |
260 // need to allow for RRC connection establishment + SRS transmission | 263 // need to allow for RRC connection establishment + SRS transmission |
261 if (Simulator::Now () > MilliSeconds (50)) | 264 if (Simulator::Now () > MilliSeconds (50)) |
262 { | 265 { |
263 NS_TEST_ASSERT_MSG_EQ ((uint32_t)mcs, (uint32_t)m_ulMcs, "Wrong UL MCS"); | 266 NS_TEST_ASSERT_MSG_EQ ((uint32_t)mcs, (uint32_t)m_ulMcs, "Wrong UL MCS"); |
264 } | 267 } |
265 } | 268 } |
OLD | NEW |