A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
burst-profile-manager.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: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
18 */
19
20#ifndef BURST_PROFILE_MANAGER_H
21#define BURST_PROFILE_MANAGER_H
22
23#include "cid.h"
24#include "wimax-net-device.h"
25#include "wimax-phy.h"
26
27#include <stdint.h>
28
29namespace ns3
30{
31
32class SSRecord;
33class RngReq;
34
35/**
36 * \ingroup wimax
37 *
38 * Profile manager for burst communications
39 */
41{
42 public:
43 /**
44 * \brief Get the type ID.
45 * \return the object TypeId
46 */
47 static TypeId GetTypeId();
48 /**
49 * Constructor
50 *
51 * \param device WIMAX device
52 */
54 ~BurstProfileManager() override;
55
56 // Delete copy constructor and assignment operator to avoid misuse
59
60 void DoDispose() override;
61 /**
62 * \returns the number of available burst profile
63 */
65
66 /**
67 * \brief returns the modulation type of a given iuc
68 * \param direction should be uplink or downlink
69 * \param iuc the iuc
70 * \returns the modulation type of the selected iuc
71 */
73 WimaxNetDevice::Direction direction) const;
74
75 /**
76 * \brief returns the burst profile
77 * \param modulationType
78 * \param direction should be uplink or downlink
79 * \returns the modulation type of the selected iuc
80 */
81 uint8_t GetBurstProfile(WimaxPhy::ModulationType modulationType,
82 WimaxNetDevice::Direction direction) const;
83
84 /**
85 * \brief Get burst profile for SS
86 * \param modulationType
87 * \param ssRecord
88 * \param rngreq
89 * \returns the burst profile for SS
90 */
91 uint8_t GetBurstProfileForSS(const SSRecord* ssRecord,
92 const RngReq* rngreq,
93 WimaxPhy::ModulationType& modulationType) const;
94 /**
95 * \brief Get module ation type for SS
96 * \param ssRecord
97 * \param rngreq
98 * \returns the burst profile for SS
99 */
101 const RngReq* rngreq) const;
102 /**
103 * \brief Get burst profile to request
104 * \returns the burst profile for SS
105 */
106 uint8_t GetBurstProfileToRequest();
107
108 private:
110};
111
112} // namespace ns3
113
114#endif /* BURST_PROFILE_MANAGER_H */
Profile manager for burst communications.
Ptr< WimaxNetDevice > m_device
the device
WimaxPhy::ModulationType GetModulationTypeForSS(const SSRecord *ssRecord, const RngReq *rngreq) const
Get module ation type for SS.
uint8_t GetBurstProfile(WimaxPhy::ModulationType modulationType, WimaxNetDevice::Direction direction) const
returns the burst profile
uint8_t GetBurstProfileToRequest()
Get burst profile to request.
static TypeId GetTypeId()
Get the type ID.
BurstProfileManager(const BurstProfileManager &)=delete
BurstProfileManager & operator=(const BurstProfileManager &)=delete
uint8_t GetBurstProfileForSS(const SSRecord *ssRecord, const RngReq *rngreq, WimaxPhy::ModulationType &modulationType) const
Get burst profile for SS.
void DoDispose() override
Destructor implementation.
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:89
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
This class implements the ranging request message described by "IEEE Standard for Local and metropoli...
Definition: mac-messages.h:664
This class is used by the base station to store some information related to subscriber station in the...
Definition: ss-record.h:46
a unique identifier for an interface.
Definition: type-id.h:59
Direction
Direction enumeration.
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:54
Every class exported by the ns3 library is enclosed in the ns3 namespace.