A Discrete-Event Network Simulator
API
burst-profile-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 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: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
19 */
20
21#ifndef BURST_PROFILE_MANAGER_H
22#define BURST_PROFILE_MANAGER_H
23
24#include <stdint.h>
25#include "cid.h"
26#include "wimax-phy.h"
27#include "wimax-net-device.h"
28
29namespace ns3 {
30
31class SSRecord;
32class RngReq;
33
40{
41public:
46 static TypeId GetTypeId (void);
54
55 // Delete copy constructor and assignment operator to avoid misuse
58
59 void DoDispose (void);
63 uint16_t GetNrBurstProfilesToDefine (void);
64
72 WimaxNetDevice::Direction direction) const;
73
80 uint8_t GetBurstProfile (WimaxPhy::ModulationType modulationType,
81 WimaxNetDevice::Direction direction) const;
82
90 uint8_t GetBurstProfileForSS (const SSRecord *ssRecord, const RngReq *rngreq,
91 WimaxPhy::ModulationType &modulationType);
99 const RngReq *rngreq);
104 uint8_t GetBurstProfileToRequest (void);
105private:
107};
108
109} // namespace ns3
110
111#endif /* BURST_PROFILE_MANAGER_H */
Profile manager for burst communications.
Ptr< WimaxNetDevice > m_device
the device
void DoDispose(void)
Destructor implementation.
uint16_t GetNrBurstProfilesToDefine(void)
uint8_t GetBurstProfileForSS(const SSRecord *ssRecord, const RngReq *rngreq, WimaxPhy::ModulationType &modulationType)
Get burst profile for SS.
BurstProfileManager(Ptr< WimaxNetDevice > device)
Constructor.
uint8_t GetBurstProfile(WimaxPhy::ModulationType modulationType, WimaxNetDevice::Direction direction) const
returns the burst profile
uint8_t GetBurstProfileToRequest(void)
Get burst profile to request.
BurstProfileManager(const BurstProfileManager &)=delete
WimaxPhy::ModulationType GetModulationTypeForSS(const SSRecord *ssRecord, const RngReq *rngreq)
Get module ation type for SS.
BurstProfileManager & operator=(const BurstProfileManager &)=delete
static TypeId GetTypeId(void)
Get the type ID.
WimaxPhy::ModulationType GetModulationType(uint8_t iuc, WimaxNetDevice::Direction direction) const
returns the modulation type of a given iuc
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 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
Direction
Direction enumeration.
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:52
Every class exported by the ns3 library is enclosed in the ns3 namespace.