A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
bs-uplink-scheduler-rtps.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007,2008 INRIA
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Giuseppe Piro <g.piro@poliba.it>
18 */
19
20#ifndef UPLINK_SCHEDULER_RTPS_H
21#define UPLINK_SCHEDULER_RTPS_H
22
23#include "bs-uplink-scheduler.h"
24#include "ul-mac-messages.h"
25#include "wimax-phy.h"
26
27#include "ns3/nstime.h"
28
29#include <stdint.h>
30
31namespace ns3
32{
33
34class BaseStationNetDevice;
35class SSRecord;
36class ServiceFlow;
37
56{
57 public:
65 ~UplinkSchedulerRtps() override;
66
71 static TypeId GetTypeId();
72
77 std::list<OfdmUlMapIe> GetUplinkAllocations() const override;
78
87 void GetChannelDescriptorsToUpdate(bool& updateDcd,
88 bool& updateUcd,
89 bool& sendDcd,
90 bool& sendUcd) override;
103 void AddUplinkAllocation(OfdmUlMapIe& ulMapIe,
104 const uint32_t& allocationSize,
105 uint32_t& symbolsToAllocation,
106 uint32_t& availableSymbols) override;
110 void Schedule() override;
120 void ServiceUnsolicitedGrants(const SSRecord* ssRecord,
121 ServiceFlow::SchedulingType schedulingType,
122 OfdmUlMapIe& ulMapIe,
123 const WimaxPhy::ModulationType modulationType,
124 uint32_t& symbolsToAllocation,
125 uint32_t& availableSymbols) override;
135 void ServiceBandwidthRequests(const SSRecord* ssRecord,
136 ServiceFlow::SchedulingType schedulingType,
137 OfdmUlMapIe& ulMapIe,
138 const WimaxPhy::ModulationType modulationType,
139 uint32_t& symbolsToAllocation,
140 uint32_t& availableSymbols) override;
151 bool ServiceBandwidthRequests(ServiceFlow* serviceFlow,
152 ServiceFlow::SchedulingType schedulingType,
153 OfdmUlMapIe& ulMapIe,
154 const WimaxPhy::ModulationType modulationType,
155 uint32_t& symbolsToAllocation,
156 uint32_t& availableSymbols) override;
174 void ULSchedulerRTPSConnection(uint32_t& symbolsToAllocation, uint32_t& availableSymbols);
181 void AllocateInitialRangingInterval(uint32_t& symbolsToAllocation,
182 uint32_t& availableSymbols) override;
188 void SetupServiceFlow(SSRecord* ssRecord, ServiceFlow* serviceFlow) override;
189
194 void ProcessBandwidthRequest(const BandwidthRequestHeader& bwRequestHdr) override;
195
197 void InitOnce() override;
198
203 void OnSetRequestedBandwidth(ServiceFlowRecord* sfr) override;
204
205 private:
206 std::list<OfdmUlMapIe> m_uplinkAllocations;
207};
208
209} // namespace ns3
210
211#endif /* UPLINK_SCHEDULER_RTPS_H */
This class implements the bandwidth-request mac Header as described by IEEE Standard for Local and me...
This class implements the UL-MAP_IE message as described by "IEEE Standard for Local and metropolitan...
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
This class is used by the base station to store some information related to subscriber station in the...
Definition: ss-record.h:46
This class implements service flows as described by the IEEE-802.16 standard.
Definition: service-flow.h:43
SchedulingType
section 11.13.11 Service flow scheduling type, page 701
Definition: service-flow.h:62
this class implements a structure to manage some parameters and statistics related to a service flow
a unique identifier for an interface.
Definition: type-id.h:59
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:54
Every class exported by the ns3 library is enclosed in the ns3 namespace.