A Discrete-Event Network Simulator
API
bs-scheduler-rtps.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 * 2009 TELEMATICS LAB, Politecnico di Bari
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation;
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Giuseppe Piro <g.piro@poliba.it>
20 */
21
22/* BS outbound scheduler as per in Section 6.3.5.1 */
23
24#ifndef BS_SCHEDULER_RTPS_H
25#define BS_SCHEDULER_RTPS_H
26
27#include <list>
28#include "ns3/packet.h"
29#include "wimax-phy.h"
30#include "ns3/packet-burst.h"
31#include "dl-mac-messages.h"
32#include "bs-scheduler.h"
33
34namespace ns3 {
35
36class BaseStationNetDevice;
37class GenericMacHeader;
38class WimaxConnection;
39class Cid;
40
59{
60public:
68 ~BSSchedulerRtps (void);
69
74 static TypeId GetTypeId (void);
75
81 std::list<std::pair<OfdmDlMapIe*, Ptr<PacketBurst> > >*
82 GetDownlinkBursts (void) const;
83
92 void AddDownlinkBurst (Ptr<const WimaxConnection> connection, uint8_t diuc,
93 WimaxPhy::ModulationType modulationType, Ptr<PacketBurst> burst);
97 void Schedule (void);
141
147 bool SelectConnection (Ptr<WimaxConnection> &connection);
148
153 void BSSchedulerBroadcastConnection (uint32_t &availableSymbols);
154
159 void BSSchedulerInitialRangingConnection (uint32_t &availableSymbols);
160
165 void BSSchedulerBasicConnection (uint32_t &availableSymbols);
166
171 void BSSchedulerPrimaryConnection (uint32_t &availableSymbols);
176 void BSSchedulerUGSConnection (uint32_t &availableSymbols);
192 void BSSchedulerRTPSConnection (uint32_t &availableSymbols);
193
198 void BSSchedulerNRTPSConnection (uint32_t &availableSymbols);
199
204 void BSSchedulerBEConnection (uint32_t &availableSymbols);
205
214 WimaxPhy::ModulationType modulationType, uint32_t availableSymbols);
215
216private:
217 std::list<std::pair<OfdmDlMapIe*, Ptr<PacketBurst> > > *m_downlinkBursts;
218};
219
220} // namespace ns3
221
222#endif /* BS_SCHEDULER_RTPS_H */
BaseStation Scheduler.
Definition: bs-scheduler.h:46
This class implements a simple downlink scheduler for rtPS flows.
bool SelectConnection(Ptr< WimaxConnection > &connection)
Selects a connection from the list of connections having packets to be sent .
void BSSchedulerPrimaryConnection(uint32_t &availableSymbols)
schedules the primary connection
void Schedule(void)
Schedule function.
std::list< std::pair< OfdmDlMapIe *, Ptr< PacketBurst > > > * GetDownlinkBursts(void) const
This function returns all the downlink bursts scheduled for the next downlink sub-frame.
bool SelectRTPSConnection(Ptr< WimaxConnection > &connection)
Check for rtPS connections that have packets to transmit.
Ptr< PacketBurst > CreateUgsBurst(ServiceFlow *serviceFlow, WimaxPhy::ModulationType modulationType, uint32_t availableSymbols)
Creates a downlink UGS burst.
void BSSchedulerUGSConnection(uint32_t &availableSymbols)
schedules the UGS connection
void BSSchedulerBEConnection(uint32_t &availableSymbols)
schedules the BE connection
bool SelectNRTPSConnection(Ptr< WimaxConnection > &connection)
Check for nrtPS connections that have packets to transmit.
void BSSchedulerBasicConnection(uint32_t &availableSymbols)
schedules the basic connections
bool SelectMenagementConnection(Ptr< WimaxConnection > &connection)
Check for Basic and Primary connections that have packets to transmit.
void BSSchedulerInitialRangingConnection(uint32_t &availableSymbols)
schedules the IR connections
void AddDownlinkBurst(Ptr< const WimaxConnection > connection, uint8_t diuc, WimaxPhy::ModulationType modulationType, Ptr< PacketBurst > burst)
This function adds a downlink burst to the list of downlink bursts scheduled for the next downlink su...
bool SelectUGSConnection(Ptr< WimaxConnection > &connection)
Check for UGS connections that have packets to transmit.
void BSSchedulerRTPSConnection(uint32_t &availableSymbols)
Downlink Scheduler for rtPS connections.
void BSSchedulerBroadcastConnection(uint32_t &availableSymbols)
schedules the broadcast connections
bool SelectBEConnection(Ptr< WimaxConnection > &connection)
Check for BE connections that have packets to transmit.
void BSSchedulerNRTPSConnection(uint32_t &availableSymbols)
schedules the NRTPS connections
bool SelectIRandBCConnection(Ptr< WimaxConnection > &connection)
Check for IR and Broadcast connections that have packets to transmit.
static TypeId GetTypeId(void)
Get the type ID.
std::list< std::pair< OfdmDlMapIe *, Ptr< PacketBurst > > > * m_downlinkBursts
down link bursts
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
This class implements service flows as described by the IEEE-802.16 standard.
Definition: service-flow.h:40
a unique identifier for an interface.
Definition: type-id.h:59
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:52
Every class exported by the ns3 library is enclosed in the ns3 namespace.