A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
bs-scheduler-simple.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007,2008 INRIA
3
*
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
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
18
*/
19
20
/* BS outbound scheduler as per in Section 6.3.5.1 */
21
22
#ifndef BS_SCHEDULER_SIMPLE_H
23
#define BS_SCHEDULER_SIMPLE_H
24
25
#include "
bs-scheduler.h
"
26
#include "
dl-mac-messages.h
"
27
#include "
wimax-phy.h
"
28
29
#include "ns3/packet-burst.h"
30
#include "ns3/packet.h"
31
32
#include <list>
33
34
namespace
ns3
35
{
36
37
class
BaseStationNetDevice;
38
class
GenericMacHeader;
39
class
WimaxConnection;
40
class
Cid;
41
47
class
BSSchedulerSimple
:
public
BSScheduler
48
{
49
public
:
50
BSSchedulerSimple
();
56
BSSchedulerSimple
(
Ptr<BaseStationNetDevice>
bs);
57
~BSSchedulerSimple
()
override
;
58
63
static
TypeId
GetTypeId
();
64
70
std::list<std::pair<OfdmDlMapIe*, Ptr<PacketBurst>>>*
GetDownlinkBursts
()
const override
;
79
void
AddDownlinkBurst
(
Ptr<const WimaxConnection>
connection,
80
uint8_t diuc,
81
WimaxPhy::ModulationType
modulationType,
82
Ptr<PacketBurst>
burst)
override
;
83
87
void
Schedule
()
override
;
93
bool
SelectConnection
(
Ptr<WimaxConnection>
& connection)
override
;
101
Ptr<PacketBurst>
CreateUgsBurst
(
ServiceFlow
* serviceFlow,
102
WimaxPhy::ModulationType
modulationType,
103
uint32_t availableSymbols)
override
;
104
105
private
:
106
std::list<std::pair<OfdmDlMapIe*, Ptr<PacketBurst>>>*
m_downlinkBursts
;
107
};
108
109
}
// namespace ns3
110
111
#endif
/* BS_SCHEDULER_SIMPLE_H */
bs-scheduler.h
ns3::BSScheduler
BaseStation Scheduler.
Definition:
bs-scheduler.h:48
ns3::BSSchedulerSimple
BaseStation Scheduler - simplified.
Definition:
bs-scheduler-simple.h:48
ns3::BSSchedulerSimple::~BSSchedulerSimple
~BSSchedulerSimple() override
Definition:
bs-scheduler-simple.cc:70
ns3::BSSchedulerSimple::GetDownlinkBursts
std::list< std::pair< OfdmDlMapIe *, Ptr< PacketBurst > > > * GetDownlinkBursts() const override
This function returns all the downlink bursts scheduled for the next downlink sub-frame.
Definition:
bs-scheduler-simple.cc:86
ns3::BSSchedulerSimple::AddDownlinkBurst
void AddDownlinkBurst(Ptr< const WimaxConnection > connection, uint8_t diuc, WimaxPhy::ModulationType modulationType, Ptr< PacketBurst > burst) override
This function adds a downlink burst to the list of downlink bursts scheduled for the next downlink su...
Definition:
bs-scheduler-simple.cc:92
ns3::BSSchedulerSimple::m_downlinkBursts
std::list< std::pair< OfdmDlMapIe *, Ptr< PacketBurst > > > * m_downlinkBursts
down link bursts
Definition:
bs-scheduler-simple.h:106
ns3::BSSchedulerSimple::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
bs-scheduler-simple.cc:47
ns3::BSSchedulerSimple::BSSchedulerSimple
BSSchedulerSimple()
Definition:
bs-scheduler-simple.cc:56
ns3::BSSchedulerSimple::Schedule
void Schedule() override
the scheduling function for the downlink subframe.
Definition:
bs-scheduler-simple.cc:116
ns3::BSSchedulerSimple::CreateUgsBurst
Ptr< PacketBurst > CreateUgsBurst(ServiceFlow *serviceFlow, WimaxPhy::ModulationType modulationType, uint32_t availableSymbols) override
Creates a downlink UGS burst.
Definition:
bs-scheduler-simple.cc:360
ns3::BSSchedulerSimple::SelectConnection
bool SelectConnection(Ptr< WimaxConnection > &connection) override
Selects a connection from the list of connections having packets to be sent .
Definition:
bs-scheduler-simple.cc:242
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::ServiceFlow
This class implements service flows as described by the IEEE-802.16 standard.
Definition:
service-flow.h:43
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::WimaxPhy::ModulationType
ModulationType
ModulationType enumeration.
Definition:
wimax-phy.h:54
dl-mac-messages.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wimax-phy.h
src
wimax
model
bs-scheduler-simple.h
Generated on Sun Mar 3 2024 17:11:13 for ns-3 by
1.9.1