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
burst-profile-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 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
#ifndef BURST_PROFILE_MANAGER_H
22
#define BURST_PROFILE_MANAGER_H
23
24
#include <stdint.h>
25
#include "
cid.h
"
26
#include "
wimax-phy.h
"
27
#include "
wimax-net-device.h
"
28
29
namespace
ns3 {
30
31
class
SSRecord;
32
class
RngReq;
33
37
class
BurstProfileManager
:
public
Object
38
{
39
public
:
40
static
TypeId
GetTypeId
(
void
);
41
BurstProfileManager
(
Ptr<WimaxNetDevice>
device);
42
~BurstProfileManager
(
void
);
43
void
DoDispose
(
void
);
44
/*
45
* \returns the number of available burst profile
46
*/
47
uint16_t
GetNrBurstProfilesToDefine
(
void
);
48
49
/*
50
* \brief returns the modulation type of a given iuc
51
* \param direction should be uplink or downlink
52
* \param iuc the iuc
53
* \returns the modulation type of the selected iuc
54
*/
55
WimaxPhy::ModulationType
GetModulationType
(uint8_t iuc,
56
WimaxNetDevice::Direction
direction)
const
;
57
58
uint8_t
GetBurstProfile
(
WimaxPhy::ModulationType
modulationType,
59
WimaxNetDevice::Direction
direction)
const
;
60
61
/*
62
* \brief during initial ranging or periodic ranging (or when RNG-REQ is used instead of
63
* DBPC) calculates the least robust burst profile for SS, e.g., based on distance,
64
* power, signal etc
65
*
66
*/
67
uint8_t
GetBurstProfileForSS
(
const
SSRecord
*ssRecord,
const
RngReq
*rngreq,
68
WimaxPhy::ModulationType
&modulationType);
69
WimaxPhy::ModulationType
GetModulationTypeForSS
(
const
SSRecord
*ssRecord,
70
const
RngReq
*rngreq);
71
uint8_t
GetBurstProfileToRequest
(
void
);
72
private
:
73
BurstProfileManager
(
const
BurstProfileManager
&);
74
BurstProfileManager
&
operator=
(
const
BurstProfileManager
&);
75
76
Ptr<WimaxNetDevice>
m_device
;
77
};
78
79
}
// namespace ns3
80
81
#endif
/* BURST_PROFILE_MANAGER_H */
ns3::BurstProfileManager::GetNrBurstProfilesToDefine
uint16_t GetNrBurstProfilesToDefine(void)
Definition:
burst-profile-manager.cc:61
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::BurstProfileManager::GetModulationTypeForSS
WimaxPhy::ModulationType GetModulationTypeForSS(const SSRecord *ssRecord, const RngReq *rngreq)
Definition:
burst-profile-manager.cc:157
ns3::BurstProfileManager
Definition:
burst-profile-manager.h:37
ns3::RngReq
Doxygen introspection did not find any typical Config paths.
Definition:
mac-messages.h:458
ns3::BurstProfileManager::m_device
Ptr< WimaxNetDevice > m_device
Definition:
burst-profile-manager.h:76
ns3::WimaxNetDevice::Direction
Direction
Definition:
wimax-net-device.h:72
ns3::BurstProfileManager::GetBurstProfileForSS
uint8_t GetBurstProfileForSS(const SSRecord *ssRecord, const RngReq *rngreq, WimaxPhy::ModulationType &modulationType)
Definition:
burst-profile-manager.cc:145
ns3::BurstProfileManager::GetBurstProfile
uint8_t GetBurstProfile(WimaxPhy::ModulationType modulationType, WimaxNetDevice::Direction direction) const
Definition:
burst-profile-manager.cc:107
ns3::BurstProfileManager::GetBurstProfileToRequest
uint8_t GetBurstProfileToRequest(void)
Definition:
burst-profile-manager.cc:165
ns3::BurstProfileManager::GetTypeId
static TypeId GetTypeId(void)
Definition:
burst-profile-manager.cc:37
ns3::BurstProfileManager::~BurstProfileManager
~BurstProfileManager(void)
Definition:
burst-profile-manager.cc:49
ns3::BurstProfileManager::GetModulationType
WimaxPhy::ModulationType GetModulationType(uint8_t iuc, WimaxNetDevice::Direction direction) const
Definition:
burst-profile-manager.cc:70
ns3::BurstProfileManager::operator=
BurstProfileManager & operator=(const BurstProfileManager &)
cid.h
ns3::WimaxPhy::ModulationType
ModulationType
Definition:
wimax-phy.h:48
ns3::BurstProfileManager::DoDispose
void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
burst-profile-manager.cc:55
wimax-net-device.h
wimax-phy.h
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::BurstProfileManager::BurstProfileManager
BurstProfileManager(Ptr< WimaxNetDevice > device)
Definition:
burst-profile-manager.cc:44
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
src
wimax
model
burst-profile-manager.h
Generated on Sat Apr 19 2014 14:07:12 for ns-3 by
1.8.6