A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
bandwidth-manager.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,2009 INRIA, UDcast
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
* Authors: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
19
* Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
20
* <amine.ismail@UDcast.com>
21
*/
22
23
#ifndef BANDWIDTH_MANAGER_H
24
#define BANDWIDTH_MANAGER_H
25
26
#include <stdint.h>
27
#include "
wimax-net-device.h
"
28
#include "
ul-job.h
"
29
#include "
bs-uplink-scheduler.h
"
30
#include "
cid.h
"
31
32
/*
33
The same bandwidth manager class serves both for BS and SS though some functions are exclusive to only one of them.
34
*/
35
36
namespace
ns3 {
37
38
class
SSRecord;
39
class
ServiceFlow;
40
class
UlJob;
41
class
UplinkScheduler;
42
54
class
BandwidthManager
:
public
Object
55
{
56
public
:
57
static
TypeId
GetTypeId
(
void
);
58
BandwidthManager
(
Ptr<WimaxNetDevice>
device);
59
~BandwidthManager
(
void
);
60
void
DoDispose
(
void
);
61
62
uint32_t
CalculateAllocationSize
(
const
SSRecord
*ssRecord,
const
ServiceFlow
*serviceFlow);
63
ServiceFlow
*
SelectFlowForRequest
(uint32_t &bytesToRequest);
64
void
SendBandwidthRequest
(uint8_t uiuc, uint16_t allocationSize);
65
void
ProcessBandwidthRequest
(
const
BandwidthRequestHeader
&bwRequestHdr);
66
void
SetSubframeRatio
(
void
);
67
uint32_t
GetSymbolsPerFrameAllocated
(
void
);
68
private
:
69
BandwidthManager
(
const
BandwidthManager
&);
70
BandwidthManager
&
operator=
(
const
BandwidthManager
&);
71
72
Ptr<WimaxNetDevice>
m_device
;
73
uint16_t
m_nrBwReqsSent
;
74
};
75
76
}
// namespace ns3
77
78
#endif
/* BANDWIDTH_MANAGER_H */
ns3::BandwidthManager::SendBandwidthRequest
void SendBandwidthRequest(uint8_t uiuc, uint16_t allocationSize)
Definition:
bandwidth-manager.cc:155
ul-job.h
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::BandwidthManager::operator=
BandwidthManager & operator=(const BandwidthManager &)
ns3::BandwidthManager::DoDispose
void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
bandwidth-manager.cc:61
ns3::BandwidthManager::m_device
Ptr< WimaxNetDevice > m_device
Definition:
bandwidth-manager.h:72
ns3::BandwidthManager::GetTypeId
static TypeId GetTypeId(void)
Definition:
bandwidth-manager.cc:43
ns3::BandwidthManager::~BandwidthManager
~BandwidthManager(void)
Definition:
bandwidth-manager.cc:56
ns3::BandwidthManager::SelectFlowForRequest
ServiceFlow * SelectFlowForRequest(uint32_t &bytesToRequest)
Definition:
bandwidth-manager.cc:127
ns3::BandwidthManager::ProcessBandwidthRequest
void ProcessBandwidthRequest(const BandwidthRequestHeader &bwRequestHdr)
Definition:
bandwidth-manager.cc:184
ns3::BandwidthRequestHeader
this class implements the bandwidth-request mac Header as described by IEEE Standard for Local and me...
Definition:
wimax-mac-header.h:150
ns3::BandwidthManager::BandwidthManager
BandwidthManager(Ptr< WimaxNetDevice > device)
Definition:
bandwidth-manager.cc:50
ns3::ServiceFlow
This class implements service flows as described by the IEEE-802.16 standard.
Definition:
service-flow.h:39
cid.h
ns3::BandwidthManager::m_nrBwReqsSent
uint16_t m_nrBwReqsSent
Definition:
bandwidth-manager.h:73
wimax-net-device.h
ns3::BandwidthManager::SetSubframeRatio
void SetSubframeRatio(void)
Definition:
bandwidth-manager.cc:204
ns3::BandwidthManager::GetSymbolsPerFrameAllocated
uint32_t GetSymbolsPerFrameAllocated(void)
Definition:
bandwidth-manager.cc:218
ns3::SSRecord
This class is used by the base station to store some information related to subscriber station in the...
Definition:
ss-record.h:43
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
ns3::BandwidthManager::CalculateAllocationSize
uint32_t CalculateAllocationSize(const SSRecord *ssRecord, const ServiceFlow *serviceFlow)
Definition:
bandwidth-manager.cc:67
bs-uplink-scheduler.h
ns3::BandwidthManager
This class manage the bandwidth request and grant mechanism.
Definition:
bandwidth-manager.h:54
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
src
wimax
model
bandwidth-manager.h
Generated on Sat Apr 19 2014 14:07:12 for ns-3 by
1.8.6