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
bs-link-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 LINK_MANAGER_H
24
#define LINK_MANAGER_H
25
26
#include <stdint.h>
27
#include "
wimax-net-device.h
"
28
#include "
bs-net-device.h
"
29
#include "ns3/event-id.h"
30
#include "
cid.h
"
31
#include "
mac-messages.h
"
32
33
namespace
ns3 {
34
38
class
BSLinkManager
:
public
Object
39
{
40
public
:
41
static
TypeId
GetTypeId
(
void
);
42
BSLinkManager
(
Ptr<BaseStationNetDevice>
bs);
43
~BSLinkManager
(
void
);
47
uint8_t
CalculateRangingOppsToAllocate
(
void
);
51
uint64_t
SelectDlChannel
(
void
);
58
void
ProcessRangingRequest
(
Cid
cid,
RngReq
rngreq);
62
void
VerifyInvitedRanging
(
Cid
cid, uint8_t uiuc);
63
private
:
64
BSLinkManager
(
const
BSLinkManager
&);
65
BSLinkManager
&
operator=
(
const
BSLinkManager
&);
66
67
void
PerformRanging
(
Cid
cid,
RngReq
rngreq);
68
void
PerformInitialRanging
(
Cid
cid,
RngReq
*rngreq,
RngRsp
*rngrsp);
69
void
PerformInvitedRanging
(
Cid
cid,
RngRsp
*rngrsp);
70
71
void
SetParametersToAdjust
(
RngRsp
*rngrsp);
72
void
AbortRanging
(
Cid
cid,
RngRsp
*rngrsp,
SSRecord
*ssRecord,
bool
isNewSS);
73
void
AcceptRanging
(
Cid
cid,
RngRsp
*rngrsp,
SSRecord
*ssRecord);
74
void
ContinueRanging
(
Cid
cid,
RngRsp
*rngrsp,
SSRecord
*ssRecord);
75
void
ScheduleRngRspMessage
(
Cid
cid,
RngRsp
*rngrsp);
76
void
DeallocateCids
(
Cid
cid);
77
78
bool
ChangeDlChannel
(
void
);
79
uint32_t
GetNewDlChannel
(
void
);
80
uint8_t
GetSignalQuality
(
void
);
81
bool
IsRangingAcceptable
(
void
);
82
83
Ptr<BaseStationNetDevice>
m_bs
;
84
85
// ranging parameters
86
uint32_t
m_signalQuality
;
87
uint8_t
m_signalQualityThreshold
;
88
int
tries
;
// variable to test multiple RNG-REQ by the SS for example undecodable at BS or lost RNG-RSP
89
};
90
91
}
// namespace ns3
92
93
#endif
/* LINK_MANAGER_H */
src
wimax
model
bs-link-manager.h
Generated on Tue Oct 9 2012 16:45:49 for ns-3 by
1.8.1.2