A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ss-scheduler.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2007,2008 INRIA
4  *
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
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
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
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
19  */
20 
21 /* SS outbound scheduler as per in Section 6.3.5.1 */
22 
23 #ifndef SS_SCHEDULER_H
24 #define SS_SCHEDULER_H
25 
26 #include <stdint.h>
27 #include "ns3/packet.h"
28 #include "ns3/packet-burst.h"
29 #include "wimax-phy.h"
30 #include "wimax-mac-header.h"
31 
32 namespace ns3 {
33 
34 class SubscriberStationNetDevice;
35 class WimaxConnection;
36 
40 class SSScheduler : public Object
41 {
42 
43 public:
44  static TypeId GetTypeId (void);
46  ~SSScheduler (void);
47 
48  void SetPollMe (bool pollMe);
49  bool GetPollMe (void) const;
57  Ptr<PacketBurst> Schedule (uint16_t availableSymbols,
58  WimaxPhy::ModulationType modulationType,
59  MacHeaderType::HeaderType packetType, Ptr<WimaxConnection> &connection);
60 
61 
62  void DoDispose (void);
63 protected:
64 private:
65  SSScheduler (const SSScheduler &);
67 
70  bool m_pollMe;
71 
72 };
73 
74 } // namespace ns3
75 
76 #endif /* SS_SCHEDULER_H */
HeaderType
this class implements the mac header type field.
void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition: ss-scheduler.cc:57
smart pointer class similar to boost::intrusive_ptr
Definition: ptr.h:60
Ptr< PacketBurst > Schedule(uint16_t availableSymbols, WimaxPhy::ModulationType modulationType, MacHeaderType::HeaderType packetType, Ptr< WimaxConnection > &connection)
Definition: ss-scheduler.cc:75
void SetPollMe(bool pollMe)
Definition: ss-scheduler.cc:63
bool GetPollMe(void) const
Definition: ss-scheduler.cc:69
Ptr< SubscriberStationNetDevice > m_ss
Definition: ss-scheduler.h:69
SSScheduler(Ptr< SubscriberStationNetDevice > ss)
Definition: ss-scheduler.cc:46
static TypeId GetTypeId(void)
Definition: ss-scheduler.cc:39
a base class which provides memory management and object aggregation
Definition: object.h:64
Ptr< WimaxConnection > SelectConnection(void)
a unique identifier for an interface.
Definition: type-id.h:49
SSScheduler & operator=(const SSScheduler &)