A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
bs-service-flow-manager.h
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 BS_SERVICE_FLOW_MANAGER_H
22
#define BS_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 "bs-net-device.h"
30
31
namespace
ns3 {
32
33
class
Packet;
34
class
ServiceFlow;
35
class
WimaxNetDevice;
36
class
SSRecord;
37
class
WimaxConnection;
38
class
BaseStationNetDevice;
39
43
class
BsServiceFlowManager
:
public
ServiceFlowManager
44
{
45
public
:
46
enum
ConfirmationCode
// as per Table 384 (not all codes implemented)
47
{
48
CONFIRMATION_CODE_SUCCESS, CONFIRMATION_CODE_REJECT
49
};
50
51
BsServiceFlowManager
(
Ptr<BaseStationNetDevice>
device);
52
~
BsServiceFlowManager
(
void
);
53
void
DoDispose
(
void
);
58
void
AddServiceFlow
(
ServiceFlow
*serviceFlow);
62
ServiceFlow
*
GetServiceFlow
(uint32_t sfid)
const
;
66
ServiceFlow
*
GetServiceFlow
(
Cid
cid)
const
;
70
std::vector<ServiceFlow*>
GetServiceFlows
(ServiceFlow::SchedulingType schedulingType)
const
;
74
void
SetMaxDsaRspRetries
(uint8_t maxDsaRspRetries);
75
76
EventId
GetDsaAckTimeoutEvent (
void
)
const
;
77
78
void
AllocateServiceFlows (
const
DsaReq
&dsaReq,
Cid
cid);
82
void
AddMulticastServiceFlow
(
ServiceFlow
sf,
enum
WimaxPhy::ModulationType modulation);
88
void
ProcessDsaAck
(
const
DsaAck
&dsaAck,
Cid
cid);
89
95
ServiceFlow
*
ProcessDsaReq
(
const
DsaReq
&dsaReq,
Cid
cid);
96
97
private
:
98
DsaRsp
CreateDsaRsp (
const
ServiceFlow
*serviceFlow, uint16_t transactionId);
99
uint8_t GetMaxDsaRspRetries (
void
)
const
;
100
void
ScheduleDsaRsp (
ServiceFlow
*serviceFlow,
Cid
cid);
101
Ptr<WimaxNetDevice>
m_device;
102
uint32_t m_sfidIndex;
103
uint8_t m_maxDsaRspRetries;
104
EventId
m_dsaAckTimeoutEvent;
105
Cid
m_inuseScheduleDsaRspCid;
106
};
107
108
}
// namespace ns3
109
110
#endif
/* BS_SERVICE_FLOW_MANAGER_H */
ns3::DsaRsp
Definition:
mac-messages.h:335
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::BsServiceFlowManager
Definition:
bs-service-flow-manager.h:43
ns3::DsaAck
Definition:
mac-messages.h:412
ns3::BsServiceFlowManager::DoDispose
void DoDispose(void)
Definition:
bs-service-flow-manager.cc:57
ns3::BsServiceFlowManager::GetServiceFlow
ServiceFlow * GetServiceFlow(uint32_t sfid) const
Definition:
bs-service-flow-manager.cc:87
ns3::Cid
Definition:
cid.h:35
ns3::BsServiceFlowManager::ProcessDsaReq
ServiceFlow * ProcessDsaReq(const DsaReq &dsaReq, Cid cid)
process a DSA-Req message
Definition:
bs-service-flow-manager.cc:175
ns3::ServiceFlow
Definition:
service-flow.h:39
ns3::BsServiceFlowManager::SetMaxDsaRspRetries
void SetMaxDsaRspRetries(uint8_t maxDsaRspRetries)
set the maximum Dynamic ServiceFlow Add (DSA) retries
Definition:
bs-service-flow-manager.cc:63
ns3::BsServiceFlowManager::ProcessDsaAck
void ProcessDsaAck(const DsaAck &dsaAck, Cid cid)
process a DSA-ACK message
Definition:
bs-service-flow-manager.cc:237
ns3::EventId
an identifier for simulation events.
Definition:
event-id.h:46
ns3::BsServiceFlowManager::AddServiceFlow
void AddServiceFlow(ServiceFlow *serviceFlow)
Add a new service flow.
Definition:
bs-service-flow-manager.cc:81
ns3::BsServiceFlowManager::AddMulticastServiceFlow
void AddMulticastServiceFlow(ServiceFlow sf, enum WimaxPhy::ModulationType modulation)
add a multicast service flow
Definition:
bs-service-flow-manager.cc:210
ns3::DsaReq
Definition:
mac-messages.h:262
ns3::ServiceFlowManager
Definition:
service-flow-manager.h:42
ns3::BsServiceFlowManager::GetServiceFlows
std::vector< ServiceFlow * > GetServiceFlows(ServiceFlow::SchedulingType schedulingType) const
Definition:
bs-service-flow-manager.cc:99
src
wimax
model
bs-service-flow-manager.h
Generated on Sun Mar 16 2014 11:25:12 for ns-3 by
1.8.6