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 * This program is free software; you can redistribute it and/or modify | 3 * This program is free software; you can redistribute it and/or modify |
4 * it under the terms of the GNU General Public License version 2 as | 4 * it under the terms of the GNU General Public License version 2 as |
5 * published by the Free Software Foundation; | 5 * published by the Free Software Foundation; |
6 * | 6 * |
7 * This program is distributed in the hope that it will be useful, | 7 * This program is distributed in the hope that it will be useful, |
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 * GNU General Public License for more details. | 10 * GNU General Public License for more details. |
11 * | 11 * |
12 * You should have received a copy of the GNU General Public License | 12 * You should have received a copy of the GNU General Public License |
13 * along with this program; if not, write to the Free Software | 13 * along with this program; if not, write to the Free Software |
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
15 * | 15 * |
16 * Author: Junling Bu <linlinjavaer@gmail.com> | 16 * Author: Junling Bu <linlinjavaer@gmail.com> |
17 */ | 17 */ |
18 #ifndef WAVE_HELPER_H | 18 #ifndef WAVE_HELPER_H |
19 #define WAVE_HELPER_H | 19 #define WAVE_HELPER_H |
20 | 20 |
21 #include <string> | 21 #include <string> |
22 #include "ns3/attribute.h" | 22 #include "ns3/attribute.h" |
23 #include "ns3/object-factory.h" | 23 #include "ns3/object-factory.h" |
24 #include "ns3/node-container.h" | 24 #include "ns3/node-container.h" |
25 #include "ns3/net-device-container.h" | 25 #include "ns3/net-device-container.h" |
26 #include "ns3/trace-helper.h" | 26 #include "ns3/trace-helper.h" |
27 #include "ns3/yans-wifi-helper.h" | 27 #include "ns3/yans-wifi-helper.h" |
28 | 28 |
29 namespace ns3 { | 29 namespace ns3 { |
| 30 |
30 class WifiPhy; | 31 class WifiPhy; |
31 class WifiMac; | 32 class WifiMac; |
32 class WaveNetDevice; | 33 class WaveNetDevice; |
33 class Node; | 34 class Node; |
34 | 35 |
35 /** | 36 /** |
36 * \ingroup wave | 37 * \ingroup wave |
37 * To trace WaveNetDevice, we have to overwrite the trace functions of class Yan
sWifiPhyHelper. | 38 * To trace WaveNetDevice, we have to overwrite the trace functions of class Yan
sWifiPhyHelper. |
38 * The source code is very similar with YansWifiPhy, only with some adaptation. | 39 * The source code is very similar with YansWifiPhy, only with some adaptation. |
39 */ | 40 */ |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 int64_t AssignStreams (NetDeviceContainer c, int64_t stream); | 245 int64_t AssignStreams (NetDeviceContainer c, int64_t stream); |
245 | 246 |
246 protected: | 247 protected: |
247 ObjectFactory m_stationManager; ///< station manager | 248 ObjectFactory m_stationManager; ///< station manager |
248 ObjectFactory m_channelScheduler; ///< channel scheduler | 249 ObjectFactory m_channelScheduler; ///< channel scheduler |
249 std::vector<uint32_t> m_macsForChannelNumber; ///< MACs for channel number | 250 std::vector<uint32_t> m_macsForChannelNumber; ///< MACs for channel number |
250 uint32_t m_physNumber; ///< Phy number | 251 uint32_t m_physNumber; ///< Phy number |
251 }; | 252 }; |
252 } | 253 } |
253 #endif /* WAVE_HELPER_H */ | 254 #endif /* WAVE_HELPER_H */ |
LEFT | RIGHT |