A Discrete-Event Network Simulator
API
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
33namespace ns3 {
34
40class BSLinkManager : public Object
41{
42public:
47 static TypeId GetTypeId (void);
54 ~BSLinkManager (void);
55
56 // Delete copy constructor and assignment operator to avoid misuse
57 BSLinkManager (const BSLinkManager &) = delete;
59
63 uint8_t CalculateRangingOppsToAllocate (void);
67 uint64_t SelectDlChannel (void);
74 void ProcessRangingRequest (Cid cid, RngReq rngreq);
80 void VerifyInvitedRanging (Cid cid, uint8_t uiuc);
81private:
87 void PerformRanging (Cid cid, RngReq rngreq);
94 void PerformInitialRanging (Cid cid, RngReq *rngreq, RngRsp *rngrsp);
100 void PerformInvitedRanging (Cid cid, RngRsp *rngrsp);
101
106 void SetParametersToAdjust (RngRsp *rngrsp);
114 void AbortRanging (Cid cid, RngRsp *rngrsp, SSRecord *ssRecord, bool isNewSS);
121 void AcceptRanging (Cid cid, RngRsp *rngrsp, SSRecord *ssRecord);
128 void ContinueRanging (Cid cid, RngRsp *rngrsp, SSRecord *ssRecord);
134 void ScheduleRngRspMessage (Cid cid, RngRsp *rngrsp);
139 void DeallocateCids (Cid cid);
140
145 bool ChangeDlChannel (void);
155 uint8_t GetSignalQuality (void);
160 bool IsRangingAcceptable (void);
161
163
164 // ranging parameters
167 int tries;
168};
169
170} // namespace ns3
171
172#endif /* LINK_MANAGER_H */
Cid class.
Definition: cid.h:38
A base class which provides memory management and object aggregation.
Definition: object.h:88
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
This class implements the ranging request message described by "IEEE Standard for Local and metropoli...
Definition: mac-messages.h:643
This class implements the ranging response message described by "IEEE Standard for Local and metropol...
Definition: mac-messages.h:122
This class is used by the base station to store some information related to subscriber station in the...
Definition: ss-record.h:44
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.