A Discrete-Event Network Simulator
API
bs-scheduler-simple.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/* BS outbound scheduler as per in Section 6.3.5.1 */
22
23#ifndef BS_SCHEDULER_SIMPLE_H
24#define BS_SCHEDULER_SIMPLE_H
25
26#include <list>
27#include "ns3/packet.h"
28#include "wimax-phy.h"
29#include "ns3/packet-burst.h"
30#include "dl-mac-messages.h"
31#include "bs-scheduler.h"
32
33namespace ns3 {
34
35class BaseStationNetDevice;
36class GenericMacHeader;
37class WimaxConnection;
38class Cid;
39
46{
47public:
55 ~BSSchedulerSimple (void);
56
61 static TypeId GetTypeId (void);
62
68 std::list<std::pair<OfdmDlMapIe*, Ptr<PacketBurst> > >*
69 GetDownlinkBursts (void) const;
78 void AddDownlinkBurst (Ptr<const WimaxConnection> connection, uint8_t diuc,
79 WimaxPhy::ModulationType modulationType, Ptr<PacketBurst> burst);
80
84 void Schedule (void);
90 bool SelectConnection (Ptr<WimaxConnection> &connection);
99 WimaxPhy::ModulationType modulationType, uint32_t availableSymbols);
100
101private:
102 std::list<std::pair<OfdmDlMapIe*, Ptr<PacketBurst> > > *m_downlinkBursts;
103};
104
105} // namespace ns3
106
107#endif /* BS_SCHEDULER_SIMPLE_H */
BaseStation Scheduler.
Definition: bs-scheduler.h:46
BaseStation Scheduler - simplified.
bool SelectConnection(Ptr< WimaxConnection > &connection)
Selects a connection from the list of connections having packets to be sent .
std::list< std::pair< OfdmDlMapIe *, Ptr< PacketBurst > > > * m_downlinkBursts
down link bursts
Ptr< PacketBurst > CreateUgsBurst(ServiceFlow *serviceFlow, WimaxPhy::ModulationType modulationType, uint32_t availableSymbols)
Creates a downlink UGS burst.
static TypeId GetTypeId(void)
Get the type ID.
void Schedule(void)
the scheduling function for the downlink subframe.
std::list< std::pair< OfdmDlMapIe *, Ptr< PacketBurst > > > * GetDownlinkBursts(void) const
This function returns all the downlink bursts scheduled for the next downlink sub-frame.
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...
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:74
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.