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
ss-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 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 */
ns3::DsaRsp
Definition:
mac-messages.h:335
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::DsaAck
Definition:
mac-messages.h:412
ns3::SsServiceFlowManager::AddServiceFlow
void AddServiceFlow(ServiceFlow *serviceFlow)
add a service flow to the list
Definition:
ss-service-flow-manager.cc:101
ns3::SsServiceFlowManager::SetMaxDsaReqRetries
void SetMaxDsaReqRetries(uint8_t maxDsaReqRetries)
sets the maximum retries on DSA request message
Definition:
ss-service-flow-manager.cc:69
ns3::SsServiceFlowManager
Definition:
ss-service-flow-manager.h:42
ns3::SsServiceFlowManager::SsServiceFlowManager
SsServiceFlowManager(Ptr< SubscriberStationNetDevice > device)
creates a service flow manager and attaches it to a device
Definition:
ss-service-flow-manager.cc:45
ns3::ServiceFlow
Definition:
service-flow.h:39
ns3::SsServiceFlowManager::GetMaxDsaReqRetries
uint8_t GetMaxDsaReqRetries(void) const
Definition:
ss-service-flow-manager.cc:75
ns3::EventId
an identifier for simulation events.
Definition:
event-id.h:46
ns3::SsServiceFlowManager::DoDispose
void DoDispose(void)
Definition:
ss-service-flow-manager.cc:63
ns3::DsaReq
Definition:
mac-messages.h:262
ns3::ServiceFlowManager
Definition:
service-flow-manager.h:42
src
wimax
model
ss-service-flow-manager.h
Generated on Sun Mar 16 2014 11:25:13 for ns-3 by
1.8.6