LEFT | RIGHT |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 /** | 91 /** |
92 * TestCase | 92 * TestCase |
93 */ | 93 */ |
94 | 94 |
95 LteInterferenceTestCase::LteInterferenceTestCase (std::string name, double d1, d
ouble d2, double dlSinr, double ulSinr, double dlSe, double ulSe, uint16_t dlMcs
, uint16_t ulMcs) | 95 LteInterferenceTestCase::LteInterferenceTestCase (std::string name, double d1, d
ouble d2, double dlSinr, double ulSinr, double dlSe, double ulSe, uint16_t dlMcs
, uint16_t ulMcs) |
96 : TestCase (name), | 96 : TestCase (name), |
97 m_d1 (d1), | 97 m_d1 (d1), |
98 m_d2 (d2), | 98 m_d2 (d2), |
99 m_dlSinrDb (10 * std::log10 (dlSinr)), | 99 m_dlSinrDb (10 * std::log10 (dlSinr)), |
100 m_ulSinrDb (10 * std::log10 (ulSinr)), | 100 m_ulSinrDb (10 * std::log10 (ulSinr)), |
| 101 m_dlSe (dlSe), |
| 102 m_ulSe (ulSe), |
101 m_dlMcs (dlMcs), | 103 m_dlMcs (dlMcs), |
102 m_ulMcs (ulMcs) | 104 m_ulMcs (ulMcs) |
103 { | 105 { |
| 106 NS_UNUSED (m_dlSe); |
| 107 NS_UNUSED (m_ulSe); |
104 } | 108 } |
105 | 109 |
106 LteInterferenceTestCase::~LteInterferenceTestCase () | 110 LteInterferenceTestCase::~LteInterferenceTestCase () |
107 { | 111 { |
108 } | 112 } |
109 | 113 |
110 void | 114 void |
111 LteInterferenceTestCase::DoRun (void) | 115 LteInterferenceTestCase::DoRun (void) |
112 { | 116 { |
113 NS_LOG_INFO (this << GetName ()); | 117 NS_LOG_INFO (this << GetName ()); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 { | 248 { |
245 // need to allow for RRC connection establishment + SRS transmission | 249 // need to allow for RRC connection establishment + SRS transmission |
246 if (Simulator::Now () > MilliSeconds (50)) | 250 if (Simulator::Now () > MilliSeconds (50)) |
247 { | 251 { |
248 NS_TEST_ASSERT_MSG_EQ ((uint32_t)mcs, (uint32_t)m_ulMcs, "Wrong UL MCS"); | 252 NS_TEST_ASSERT_MSG_EQ ((uint32_t)mcs, (uint32_t)m_ulMcs, "Wrong UL MCS"); |
249 } | 253 } |
250 } | 254 } |
251 | 255 |
252 } // namespace ns3 | 256 } // namespace ns3 |
253 | 257 |
LEFT | RIGHT |