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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
bs-link-manager.h
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 */
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::RngRsp
Definition:
mac-messages.h:97
ns3::RngReq
Definition:
mac-messages.h:458
ns3::BSLinkManager::ProcessRangingRequest
void ProcessRangingRequest(Cid cid, RngReq rngreq)
process a ranging request message
Definition:
bs-link-manager.cc:72
ns3::BSLinkManager::SelectDlChannel
uint64_t SelectDlChannel(void)
Definition:
bs-link-manager.cc:329
ns3::Cid
Definition:
cid.h:35
ns3::BSLinkManager
Definition:
bs-link-manager.h:38
ns3::BSLinkManager::VerifyInvitedRanging
void VerifyInvitedRanging(Cid cid, uint8_t uiuc)
Verifies at the end of an invited ranging interval if SS sent ranging message in it or not...
Definition:
bs-link-manager.cc:242
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::BSLinkManager::CalculateRangingOppsToAllocate
uint8_t CalculateRangingOppsToAllocate(void)
Definition:
bs-link-manager.cc:62
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:44
src
wimax
model
bs-link-manager.h
Generated on Sun Mar 16 2014 11:25:12 for ns-3 by
1.8.6