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) 2013 Dalian University of Technology | 3 * Copyright (c) 2013 Dalian University of Technology |
4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
5 * it under the terms of the GNU General Public License version 2 as | 5 * it under the terms of the GNU General Public License version 2 as |
6 * published by the Free Software Foundation; | 6 * published by the Free Software Foundation; |
7 * | 7 * |
8 * This program is distributed in the hope that it will be useful, | 8 * This program is distributed in the hope that it will be useful, |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 28 matching lines...) Expand all Loading... |
39 public: | 39 public: |
40 static TypeId GetTypeId (void); | 40 static TypeId GetTypeId (void); |
41 ChannelScheduler (void); | 41 ChannelScheduler (void); |
42 virtual ~ChannelScheduler (void); | 42 virtual ~ChannelScheduler (void); |
43 void SetWaveNetDevice (WaveNetDevice *device); | 43 void SetWaveNetDevice (WaveNetDevice *device); |
44 void SetChannelManager (Ptr<ChannelManager> manager); | 44 void SetChannelManager (Ptr<ChannelManager> manager); |
45 void SetChannelCoodinator (Ptr<ChannelCoordinator> coordinator); | 45 void SetChannelCoodinator (Ptr<ChannelCoordinator> coordinator); |
46 | 46 |
47 enum ChannelAccess | 47 enum ChannelAccess |
48 { | 48 { |
49 » ContinuousAccess, | 49 ContinuousAccess, |
50 » AlternatingAccess, | 50 AlternatingAccess, |
51 » ExtendedAccess, | 51 ExtendedAccess, |
52 » NoAccess, | 52 NoAccess, |
53 }; | 53 }; |
54 bool IsAccessAssigned (uint32_t channelNumber) const; | 54 bool IsAccessAssigned (uint32_t channelNumber) const; |
55 enum ChannelScheduler::ChannelAccess GetAccess (uint32_t channelNumber) const; | 55 enum ChannelScheduler::ChannelAccess GetAccess (uint32_t channelNumber) const; |
56 /** | 56 /** |
57 * \param channelNumber the specific channel | 57 * \param channelNumber the specific channel |
58 * \param immediate indicate whether channel switch to channel | 58 * \param immediate indicate whether channel switch to channel |
59 * \return whether the channel access is assigned successfully | 59 * \return whether the channel access is assigned successfully |
60 * | 60 * |
61 * This method will assign alternating access. | 61 * This method will assign alternating access. |
62 * Unimplemented now | 62 * Unimplemented now |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 * when m_channelAccess is AlternatingAccess, m_channelNumber | 125 * when m_channelAccess is AlternatingAccess, m_channelNumber |
126 * is SCH channel number, another alternating channel is CCH; | 126 * is SCH channel number, another alternating channel is CCH; |
127 * when m_channelAccess is ExtendedAccess, m_channelNumber | 127 * when m_channelAccess is ExtendedAccess, m_channelNumber |
128 * is extended access, extends is the number of extends access. | 128 * is extended access, extends is the number of extends access. |
129 */ | 129 */ |
130 enum ChannelAccess m_channelAccess; | 130 enum ChannelAccess m_channelAccess; |
131 }; | 131 }; |
132 | 132 |
133 } | 133 } |
134 #endif /* CHANNE_SCHEDULER_H */ | 134 #endif /* CHANNE_SCHEDULER_H */ |
LEFT | RIGHT |