A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ss-record.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  * Author: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
19  * Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
20  */
21 
22 #ifndef SS_RECORD_H
23 #define SS_RECORD_H
24 
25 #include <stdint.h>
26 #include <ostream>
27 #include "ns3/mac48-address.h"
28 #include "wimax-connection.h"
29 #include "wimax-phy.h"
30 #include "wimax-net-device.h"
31 #include "ns3/ipv4-address.h"
32 #include <stdint.h>
33 #include "service-flow.h"
34 
35 namespace ns3 {
36 
37 class ServiceFlow;
38 
43 class SSRecord
44 {
45 public:
46  SSRecord (void);
47  SSRecord (Mac48Address macAddress);
48  SSRecord (Mac48Address macAddress, Ipv4Address IPaddress);
49  ~SSRecord (void);
50 
51  void SetBasicCid (Cid basicCid);
52  Cid GetBasicCid (void) const;
53 
54  void SetPrimaryCid (Cid primaryCid);
55  Cid GetPrimaryCid (void) const;
56 
57  void SetMacAddress (Mac48Address macAddress);
58  Mac48Address GetMacAddress (void) const;
59 
60  uint8_t GetRangingCorrectionRetries (void) const;
63  uint8_t GetInvitedRangRetries (void) const;
64  void ResetInvitedRangingRetries (void);
66  void SetModulationType (WimaxPhy::ModulationType modulationType);
68 
71 
72  void EnablePollForRanging (void);
73  void DisablePollForRanging (void);
74  bool GetPollForRanging (void) const;
75 
76  bool GetAreServiceFlowsAllocated (void) const;
77 
78  void SetPollMeBit (bool pollMeBit);
79  bool GetPollMeBit (void) const;
80 
81  void AddServiceFlow (ServiceFlow *serviceFlow);
82  std::vector<ServiceFlow*> GetServiceFlows (enum ServiceFlow::SchedulingType schedulingType) const;
83  bool GetHasServiceFlowUgs (void) const;
84  bool GetHasServiceFlowRtps (void) const;
85  bool GetHasServiceFlowNrtps (void) const;
86  bool GetHasServiceFlowBe (void) const;
87 
88  void SetSfTransactionId (uint16_t sfTransactionId);
89  uint16_t GetSfTransactionId (void) const;
90 
91  void SetDsaRspRetries (uint8_t dsaRspRetries);
92  void IncrementDsaRspRetries (void);
93  uint8_t GetDsaRspRetries (void) const;
94 
95  void SetDsaRsp (DsaRsp dsaRsp);
96  DsaRsp GetDsaRsp (void) const;
97  void SetIsBroadcastSS (bool);
98  bool GetIsBroadcastSS (void);
99 
100  Ipv4Address GetIPAddress (void);
101  void SetIPAddress (Ipv4Address IPaddress);
102  void SetAreServiceFlowsAllocated (bool val);
103 private:
104  void Initialize (void);
105 
108 
111 
114 
115  WimaxPhy::ModulationType m_modulationType; // least robust burst profile (modulation type) for this SS
119  bool m_pollMeBit; // if PM (poll me) bit set for this SS
121 
122  std::vector<ServiceFlow*> *m_serviceFlows;
123 
124  // fields for service flow creation
128 };
129 
130 } // namespace ns3
131 
132 #endif /* SS_RECORD_H */
void AddServiceFlow(ServiceFlow *serviceFlow)
Definition: ss-record.cc:224
Doxygen introspection did not find any typical Config paths.
Definition: mac-messages.h:335
~SSRecord(void)
Definition: ss-record.cc:68
void IncrementRangingCorrectionRetries(void)
Definition: ss-record.cc:134
Mac48Address GetMacAddress(void) const
Definition: ss-record.cc:116
void SetIsBroadcastSS(bool)
Definition: ss-record.cc:243
bool GetHasServiceFlowBe(void) const
Definition: ss-record.cc:294
WimaxPhy::ModulationType m_modulationType
Definition: ss-record.h:115
Cid GetBasicCid(void) const
Definition: ss-record.cc:92
void SetPrimaryCid(Cid primaryCid)
Definition: ss-record.cc:98
void IncrementDsaRspRetries(void)
Definition: ss-record.cc:324
Ipv4Address m_IPAddress
Definition: ss-record.h:107
Ipv4Address GetIPAddress(void)
Definition: ss-record.cc:80
bool m_pollForRanging
Definition: ss-record.h:117
bool GetAreServiceFlowsAllocated(void) const
Definition: ss-record.cc:206
void SetDsaRspRetries(uint8_t dsaRspRetries)
Definition: ss-record.cc:318
WimaxNetDevice::RangingStatus GetRangingStatus(void) const
Definition: ss-record.cc:176
void DisablePollForRanging(void)
Definition: ss-record.cc:188
Cid m_primaryCid
Definition: ss-record.h:110
uint8_t m_rangingCorrectionRetries
Definition: ss-record.h:112
void SetDsaRsp(DsaRsp dsaRsp)
Definition: ss-record.cc:336
std::vector< ServiceFlow * > * m_serviceFlows
Definition: ss-record.h:122
void SetModulationType(WimaxPhy::ModulationType modulationType)
Definition: ss-record.cc:158
void SetRangingStatus(WimaxNetDevice::RangingStatus rangingStatus)
Definition: ss-record.cc:170
void Initialize(void)
Definition: ss-record.cc:47
void ResetInvitedRangingRetries(void)
Definition: ss-record.cc:146
SSRecord(void)
Definition: ss-record.cc:28
void SetSfTransactionId(uint16_t sfTransactionId)
Definition: ss-record.cc:307
uint8_t GetDsaRspRetries(void) const
Definition: ss-record.cc:330
void ResetRangingCorrectionRetries(void)
Definition: ss-record.cc:128
void SetBasicCid(Cid basicCid)
Definition: ss-record.cc:86
void EnablePollForRanging(void)
Definition: ss-record.cc:182
bool m_broadcast
Definition: ss-record.h:120
bool GetHasServiceFlowRtps(void) const
Definition: ss-record.cc:268
void SetPollMeBit(bool pollMeBit)
Definition: ss-record.cc:212
std::vector< ServiceFlow * > GetServiceFlows(enum ServiceFlow::SchedulingType schedulingType) const
Definition: ss-record.cc:229
DsaRsp m_dsaRsp
Definition: ss-record.h:127
uint8_t GetRangingCorrectionRetries(void) const
Definition: ss-record.cc:122
WimaxNetDevice::RangingStatus m_rangingStatus
Definition: ss-record.h:116
bool GetHasServiceFlowUgs(void) const
Definition: ss-record.cc:255
bool GetPollMeBit(void) const
Definition: ss-record.cc:218
void IncrementInvitedRangingRetries(void)
Definition: ss-record.cc:152
void SetAreServiceFlowsAllocated(bool val)
Definition: ss-record.cc:200
Definition: cid.h:35
uint8_t m_dsaRspRetries
Definition: ss-record.h:126
an EUI-48 address
Definition: mac48-address.h:41
This class implements service flows as described by the IEEE-802.16 standard.
Definition: service-flow.h:39
bool m_pollMeBit
Definition: ss-record.h:119
bool GetHasServiceFlowNrtps(void) const
Definition: ss-record.cc:281
uint16_t GetSfTransactionId(void) const
Definition: ss-record.cc:312
Cid GetPrimaryCid(void) const
Definition: ss-record.cc:104
bool GetPollForRanging(void) const
Definition: ss-record.cc:194
uint8_t GetInvitedRangRetries(void) const
Definition: ss-record.cc:140
DsaRsp GetDsaRsp(void) const
Definition: ss-record.cc:342
bool m_areServiceFlowsAllocated
Definition: ss-record.h:118
bool GetIsBroadcastSS(void)
Definition: ss-record.cc:249
Ipv4 addresses are stored in host order in this class.
Definition: ipv4-address.h:38
Mac48Address m_macAddress
Definition: ss-record.h:106
void SetIPAddress(Ipv4Address IPaddress)
Definition: ss-record.cc:75
uint8_t m_invitedRangingRetries
Definition: ss-record.h:113
This class is used by the base station to store some information related to subscriber station in the...
Definition: ss-record.h:43
void SetMacAddress(Mac48Address macAddress)
Definition: ss-record.cc:110
WimaxPhy::ModulationType GetModulationType(void) const
Definition: ss-record.cc:164
uint16_t m_sfTransactionId
Definition: ss-record.h:125