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) 2007,2008 INRIA | 3 * Copyright (c) 2007,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 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 static TypeId GetTypeId (void); | 49 static TypeId GetTypeId (void); |
50 /** | 50 /** |
51 * Constructor | 51 * Constructor |
52 * | 52 * |
53 * \param ss subscriber station device | 53 * \param ss subscriber station device |
54 */ | 54 */ |
55 SSScheduler (Ptr<SubscriberStationNetDevice> ss); | 55 SSScheduler (Ptr<SubscriberStationNetDevice> ss); |
56 ~SSScheduler (void); | 56 ~SSScheduler (void); |
57 | 57 |
58 /** | 58 /** |
59 * Set poll me function | 59 * Set poll me value |
60 * \param pollMe the poll me flag | 60 * \param pollMe the poll me flag |
61 */ | 61 */ |
62 void SetPollMe (bool pollMe); | 62 void SetPollMe (bool pollMe); |
63 /** | 63 /** |
64 * Get poll me function | 64 * Get the poll me value |
65 * \returns the poll me flag | 65 * \returns the poll me flag |
66 */ | 66 */ |
67 bool GetPollMe (void) const; | 67 bool GetPollMe (void) const; |
68 /** | 68 /** |
69 * \return a list of packet to be sent in the next opportunity | 69 * \return a list of packet to be sent in the next opportunity |
70 * \param availableSymbols the available resources in symbols | 70 * \param availableSymbols the available resources in symbols |
71 * \param modulationType the used modulation | 71 * \param modulationType the used modulation |
72 * \param packetType the type of packets to select from | 72 * \param packetType the type of packets to select from |
73 * \param connection the connection from wich packets will be selected | 73 * \param connection the connection from wich packets will be selected |
74 */ | 74 */ |
75 Ptr<PacketBurst> Schedule (uint16_t availableSymbols, | 75 Ptr<PacketBurst> Schedule (uint16_t availableSymbols, |
76 WimaxPhy::ModulationType modulationType, | 76 WimaxPhy::ModulationType modulationType, |
77 MacHeaderType::HeaderType packetType, Ptr<WimaxConn
ection> &connection); | 77 MacHeaderType::HeaderType packetType, Ptr<WimaxConn
ection> &connection); |
78 | 78 |
79 | 79 |
80 void DoDispose (void); | 80 void DoDispose (void); |
81 protected: | 81 protected: |
82 private: | 82 private: |
83 /// type conversion operator | 83 /// type conversion operator |
84 SSScheduler (const SSScheduler &); | 84 SSScheduler (const SSScheduler &); |
85 /// assignment operator | 85 /** |
| 86 * assignment operator |
| 87 * \returns the SS scheduler |
| 88 */ |
86 SSScheduler & operator= (const SSScheduler &); | 89 SSScheduler & operator= (const SSScheduler &); |
87 | 90 |
88 /** | 91 /** |
89 * Select connnection function | 92 * Select connnection |
90 * \returns the wimax connection | 93 * \returns pointer to the wimax connection |
91 */ | 94 */ |
92 Ptr<WimaxConnection> SelectConnection (void); | 95 Ptr<WimaxConnection> SelectConnection (void); |
93 Ptr<SubscriberStationNetDevice> m_ss; ///< the subscriber station | 96 Ptr<SubscriberStationNetDevice> m_ss; ///< the subscriber station |
94 bool m_pollMe; ///< poll me | 97 bool m_pollMe; ///< poll me flag |
95 | 98 |
96 }; | 99 }; |
97 | 100 |
98 } // namespace ns3 | 101 } // namespace ns3 |
99 | 102 |
100 #endif /* SS_SCHEDULER_H */ | 103 #endif /* SS_SCHEDULER_H */ |
LEFT | RIGHT |