A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ss-service-flow-manager.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 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  * Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
19  */
20 
21 #ifndef SS_SERVICE_FLOW_MANAGER_H
22 #define SS_SERVICE_FLOW_MANAGER_H
23 
24 #include <stdint.h>
25 #include "ns3/event-id.h"
26 #include "mac-messages.h"
27 #include "ns3/buffer.h"
28 #include "service-flow-manager.h"
29 #include "ss-net-device.h"
30 
31 namespace ns3 {
32 
33 class Packet;
34 class ServiceFlow;
35 class WimaxNetDevice;
36 class WimaxConnection;
37 class SubscriberStationNetDevice;
38 
43 {
44 public:
45  enum ConfirmationCode // as per Table 384 (not all codes implemented)
46  {
48  };
54 
55  ~SsServiceFlowManager (void);
56  void DoDispose (void);
61  void AddServiceFlow (ServiceFlow *serviceFlow);
66  void AddServiceFlow (ServiceFlow serviceFlow);
71  void SetMaxDsaReqRetries (uint8_t maxDsaReqRetries);
75  uint8_t GetMaxDsaReqRetries (void) const;
76 
77  EventId GetDsaRspTimeoutEvent (void) const;
78  EventId GetDsaAckTimeoutEvent (void) const;
79 
80  void InitiateServiceFlows (void);
81 
82  DsaReq CreateDsaReq (const ServiceFlow *serviceFlow);
83 
85 
86  void ScheduleDsaReq (const ServiceFlow *serviceFlow);
87 
88  void ProcessDsaRsp (const DsaRsp &dsaRsp);
89 
90 
91 private:
93 
95 
98 
101 
105 
106  // pointer to the service flow currently being configured
108 
109 
110 };
111 
112 } // namespace ns3
113 
114 #endif /* SS_SERVICE_FLOW_MANAGER_H */
Doxygen introspection did not find any typical Config paths.
Definition: mac-messages.h:344
smart pointer class similar to boost::intrusive_ptr
Definition: ptr.h:60
Doxygen introspection did not find any typical Config paths.
Definition: mac-messages.h:430
EventId GetDsaRspTimeoutEvent(void) const
EventId GetDsaAckTimeoutEvent(void) const
Ptr< SubscriberStationNetDevice > m_device
void AddServiceFlow(ServiceFlow *serviceFlow)
add a service flow to the list
void SetMaxDsaReqRetries(uint8_t maxDsaReqRetries)
sets the maximum retries on DSA request message
SsServiceFlowManager(Ptr< SubscriberStationNetDevice > device)
creates a service flow manager and attaches it to a device
This class implements service flows as described by the IEEE-802.16 standard.
Definition: service-flow.h:39
uint8_t GetMaxDsaReqRetries(void) const
DsaReq CreateDsaReq(const ServiceFlow *serviceFlow)
an identifier for simulation events.
Definition: event-id.h:46
void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
void ProcessDsaRsp(const DsaRsp &dsaRsp)
Doxygen introspection did not find any typical Config paths.
Definition: mac-messages.h:262
The same service flow manager class serves both for BS and SS though some functions are exclusive to ...
void ScheduleDsaReq(const ServiceFlow *serviceFlow)