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) 2008 INRIA | 3 * Copyright (c) 2008 INRIA |
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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> | 18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 * Junling Bu <linlinjavaer@gmail.com> | 19 * Junling Bu <linlinjavaer@gmail.com> |
20 */ | 20 */ |
21 #ifndef WAVE_MAC_LOW_H | 21 #ifndef WAVE_MAC_LOW_H |
22 #define WAVE_MAC_LOW_H | 22 #define WAVE_MAC_LOW_H |
23 | 23 |
24 #include "ns3/mac-low.h" | 24 #include "ns3/mac-low.h" |
25 #include "wave-net-device.h" | 25 #include "wave-net-device.h" |
26 | 26 |
27 namespace ns3 { | 27 namespace ns3 { |
| 28 |
28 class WaveNetDevice; | 29 class WaveNetDevice; |
29 | 30 |
30 /** | 31 /** |
31 * \ingroup wave | 32 * \ingroup wave |
32 * This class is the subclass of MacLow to provide support for MAC extension | 33 * This class is the subclass of MacLow to provide support for MAC extension |
33 * (1) allows higher layer control data rate and tx power level. | 34 * (1) allows higher layer control data rate and tx power level. |
34 * If higher layer does not set, they will be determined by WifiRemoteStatio
nManager | 35 * If higher layer does not set, they will be determined by WifiRemoteStatio
nManager |
35 * of MAC layer; | 36 * of MAC layer; |
36 * If higher layer sets tx parameters in non-adaptable mode, the data rate | 37 * If higher layer sets tx parameters in non-adaptable mode, the data rate |
37 * and tx power level will be used for transmission;. | 38 * and tx power level will be used for transmission;. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 */ | 84 */ |
84 virtual WifiTxVector GetDataTxVector (Ptr<const Packet> packet, const WifiMacH
eader *hdr) const; | 85 virtual WifiTxVector GetDataTxVector (Ptr<const Packet> packet, const WifiMacH
eader *hdr) const; |
85 | 86 |
86 Ptr<ChannelScheduler> m_scheduler; ///< the channel scheduler | 87 Ptr<ChannelScheduler> m_scheduler; ///< the channel scheduler |
87 Ptr<ChannelCoordinator> m_coordinator; ///< the channel coordinator | 88 Ptr<ChannelCoordinator> m_coordinator; ///< the channel coordinator |
88 }; | 89 }; |
89 | 90 |
90 } // namespace ns3 | 91 } // namespace ns3 |
91 | 92 |
92 #endif /* WAVE_MAC_LOW_H*/ | 93 #endif /* WAVE_MAC_LOW_H*/ |
OLD | NEW |