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) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void | 122 void |
123 UanChannel::SetPropagationModel (Ptr<UanPropModel> prop) | 123 UanChannel::SetPropagationModel (Ptr<UanPropModel> prop) |
124 { | 124 { |
125 NS_LOG_DEBUG ("Set Prop Model " << this); | 125 NS_LOG_DEBUG ("Set Prop Model " << this); |
126 m_prop = prop; | 126 m_prop = prop; |
127 } | 127 } |
128 | 128 |
129 uint32_t | 129 uint32_t |
130 UanChannel::GetNDevices () const | 130 UanChannel::GetNDevices () const |
131 { | 131 { |
132 return m_devList.size (); | 132 return static_cast<uint32_t>(m_devList.size ()); |
133 } | 133 } |
134 | 134 |
135 Ptr<NetDevice> | 135 Ptr<NetDevice> |
136 UanChannel::GetDevice (uint32_t i) const | 136 UanChannel::GetDevice (uint32_t i) const |
137 { | 137 { |
138 return m_devList[i].first; | 138 return m_devList[i].first; |
139 } | 139 } |
140 | 140 |
141 void | 141 void |
142 UanChannel::AddDevice (Ptr<UanNetDevice> dev, Ptr<UanTransducer> trans) | 142 UanChannel::AddDevice (Ptr<UanNetDevice> dev, Ptr<UanTransducer> trans) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 double | 214 double |
215 UanChannel::GetNoiseDbHz (double fKhz) | 215 UanChannel::GetNoiseDbHz (double fKhz) |
216 { | 216 { |
217 NS_ASSERT (m_noise); | 217 NS_ASSERT (m_noise); |
218 double noise = m_noise->GetNoiseDbHz (fKhz); | 218 double noise = m_noise->GetNoiseDbHz (fKhz); |
219 return noise; | 219 return noise; |
220 } | 220 } |
221 | 221 |
222 } // namespace ns3 | 222 } // namespace ns3 |
LEFT | RIGHT |