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 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright 2012 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 ++rowIndex; | 117 ++rowIndex; |
118 colIndex -= m_gridWidth; | 118 colIndex -= m_gridWidth; |
119 } | 119 } |
120 NS_LOG_LOGIC ("node " << n << " site " << currentSite· | 120 NS_LOG_LOGIC ("node " << n << " site " << currentSite· |
121 << " rowIndex " << rowIndex· | 121 << " rowIndex " << rowIndex· |
122 << " colIndex " << colIndex· | 122 << " colIndex " << colIndex· |
123 << " biRowIndex " << biRowIndex | 123 << " biRowIndex " << biRowIndex |
124 << " biRowRemainder " << biRowRemainder); | 124 << " biRowRemainder " << biRowRemainder); |
125 double y = m_yMin + yd * rowIndex; | 125 double y = m_yMin + yd * rowIndex; |
126 double x; | 126 double x; |
127 double antennaOrientation; | 127 double antennaOrientation = 0.0; |
128 if ((rowIndex % 2) == 0)· | 128 if ((rowIndex % 2) == 0)· |
129 { | 129 { |
130 x = m_xMin + m_d * colIndex; | 130 x = m_xMin + m_d * colIndex; |
131 } | 131 } |
132 else // row is odd | 132 else // row is odd |
133 { | 133 { |
134 x = m_xMin -(0.5*m_d) + m_d * colIndex; | 134 x = m_xMin -(0.5*m_d) + m_d * colIndex; |
135 } | 135 } |
136 ······ | 136 ······ |
137 switch (n%3) | 137 switch (n%3) |
(...skipping 26 matching lines...) Expand all Loading... |
164 NS_LOG_LOGIC ("node " << n << " at " << pos << " antennaOrientation " << a
ntennaOrientation); | 164 NS_LOG_LOGIC ("node " << n << " at " << pos << " antennaOrientation " << a
ntennaOrientation); |
165 mm->SetPosition (Vector (x, y, m_siteHeight)); | 165 mm->SetPosition (Vector (x, y, m_siteHeight)); |
166 m_lteHelper->SetEnbAntennaModelAttribute ("Orientation", DoubleValue (ante
nnaOrientation)); | 166 m_lteHelper->SetEnbAntennaModelAttribute ("Orientation", DoubleValue (ante
nnaOrientation)); |
167 enbDevs.Add (m_lteHelper->InstallEnbDevice (node)); | 167 enbDevs.Add (m_lteHelper->InstallEnbDevice (node)); |
168 } | 168 } |
169 return enbDevs; | 169 return enbDevs; |
170 } | 170 } |
171 | 171 |
172 } // namespace ns3 | 172 } // namespace ns3 |
173 · | 173 · |
LEFT | RIGHT |