A Discrete-Event Network Simulator
API
bs-uplink-scheduler-rtps.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: Giuseppe Piro <g.piro@poliba.it>
19 */
20
21#ifndef UPLINK_SCHEDULER_RTPS_H
22#define UPLINK_SCHEDULER_RTPS_H
23
24#include <stdint.h>
25#include "ul-mac-messages.h"
26#include "ns3/nstime.h"
27#include "wimax-phy.h"
28#include "bs-uplink-scheduler.h"
29
30namespace ns3 {
31
32class BaseStationNetDevice;
33class SSRecord;
34class ServiceFlow;
35
54{
55public:
64
69 static TypeId GetTypeId (void);
70
75 std::list<OfdmUlMapIe> GetUplinkAllocations (void) const;
76
85 void GetChannelDescriptorsToUpdate (bool &updateDcd, bool &updateUcd, bool &sendDcd, bool &sendUcd);
98 void AddUplinkAllocation (OfdmUlMapIe &ulMapIe,
99 const uint32_t &allocationSize,
100 uint32_t &symbolsToAllocation,
101 uint32_t &availableSymbols);
105 void Schedule (void);
115 void ServiceUnsolicitedGrants (const SSRecord *ssRecord,
116 enum ServiceFlow::SchedulingType schedulingType,
117 OfdmUlMapIe &ulMapIe,
118 const WimaxPhy::ModulationType modulationType,
119 uint32_t &symbolsToAllocation,
120 uint32_t &availableSymbols);
130 void ServiceBandwidthRequests (const SSRecord *ssRecord,
131 enum ServiceFlow::SchedulingType schedulingType,
132 OfdmUlMapIe &ulMapIe,
133 const WimaxPhy::ModulationType modulationType,
134 uint32_t &symbolsToAllocation,
135 uint32_t &availableSymbols);
146 bool ServiceBandwidthRequests (ServiceFlow *serviceFlow,
147 enum ServiceFlow::SchedulingType schedulingType,
148 OfdmUlMapIe &ulMapIe,
149 const WimaxPhy::ModulationType modulationType,
150 uint32_t &symbolsToAllocation,
151 uint32_t &availableSymbols);
169 void ULSchedulerRTPSConnection (uint32_t &symbolsToAllocation, uint32_t &availableSymbols);
176 void AllocateInitialRangingInterval (uint32_t &symbolsToAllocation, uint32_t &availableSymbols);
182 void SetupServiceFlow (SSRecord *ssRecord, ServiceFlow *serviceFlow);
183
188 void ProcessBandwidthRequest (const BandwidthRequestHeader &bwRequestHdr);
189
191 void InitOnce (void);
192
198
199private:
200 std::list<OfdmUlMapIe> m_uplinkAllocations;
201
202};
203
204} // namespace ns3
205
206#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:74
This class is used by the base station to store some information related to subscriber station in the...
Definition: ss-record.h:44
This class implements service flows as described by the IEEE-802.16 standard.
Definition: service-flow.h:40
SchedulingType
section 11.13.11 Service flow scheduling type, page 701
Definition: service-flow.h:59
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:52
Every class exported by the ns3 library is enclosed in the ns3 namespace.