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
File Members
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
42
class
SsServiceFlowManager
:
public
ServiceFlowManager
43
{
44
public
:
45
enum
ConfirmationCode
// as per Table 384 (not all codes implemented)
46
{
47
CONFIRMATION_CODE_SUCCESS
,
CONFIRMATION_CODE_REJECT
48
};
53
SsServiceFlowManager
(
Ptr<SubscriberStationNetDevice>
device);
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
84
Ptr<Packet>
CreateDsaAck
(
void
);
85
86
void
ScheduleDsaReq
(
const
ServiceFlow
*serviceFlow);
87
88
void
ProcessDsaRsp
(
const
DsaRsp
&dsaRsp);
89
90
91
private
:
92
Ptr<SubscriberStationNetDevice>
m_device
;
93
94
uint32_t
m_sfidIndex
;
95
96
uint8_t
m_maxDsaReqRetries
;
97
98
EventId
m_dsaRspTimeoutEvent
;
99
EventId
m_dsaAckTimeoutEvent
;
100
101
DsaReq
m_dsaReq
;
102
DsaAck
m_dsaAck
;
103
104
uint16_t
m_currentTransactionId
;
105
uint16_t
m_transactionIdIndex
;
106
uint8_t
m_dsaReqRetries
;
107
108
// pointer to the service flow currently being configured
109
ServiceFlow
*
m_pendingServiceFlow
;
110
111
112
};
113
114
}
// namespace ns3
115
116
#endif
/* SS_SERVICE_FLOW_MANAGER_H */
src
wimax
model
ss-service-flow-manager.h
Generated on Tue Oct 9 2012 16:45:50 for ns-3 by
1.8.1.2