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
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
uint8_t
m_maxDsaReqRetries
;
95
96
EventId
m_dsaRspTimeoutEvent
;
97
EventId
m_dsaAckTimeoutEvent
;
98
99
DsaReq
m_dsaReq
;
100
DsaAck
m_dsaAck
;
101
102
uint16_t
m_currentTransactionId
;
103
uint16_t
m_transactionIdIndex
;
104
uint8_t
m_dsaReqRetries
;
105
106
// pointer to the service flow currently being configured
107
ServiceFlow
*
m_pendingServiceFlow
;
108
109
110
};
111
112
}
// namespace ns3
113
114
#endif
/* SS_SERVICE_FLOW_MANAGER_H */
ns3::DsaRsp
Introspection did not find any typical Config paths.
Definition:
mac-messages.h:344
ns3::SsServiceFlowManager::m_dsaReq
DsaReq m_dsaReq
Definition:
ss-service-flow-manager.h:99
ns3::SsServiceFlowManager::m_maxDsaReqRetries
uint8_t m_maxDsaReqRetries
Definition:
ss-service-flow-manager.h:94
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::DsaAck
Introspection did not find any typical Config paths.
Definition:
mac-messages.h:430
ns3::SsServiceFlowManager::GetDsaRspTimeoutEvent
EventId GetDsaRspTimeoutEvent(void) const
Definition:
ss-service-flow-manager.cc:81
ns3::SsServiceFlowManager::GetDsaAckTimeoutEvent
EventId GetDsaAckTimeoutEvent(void) const
Definition:
ss-service-flow-manager.cc:87
ns3::SsServiceFlowManager::m_device
Ptr< SubscriberStationNetDevice > m_device
Definition:
ss-service-flow-manager.h:92
mac-messages.h
ns3::ServiceFlowManager::ConfirmationCode
ConfirmationCode
Definition:
service-flow-manager.h:45
ns3::SsServiceFlowManager::AddServiceFlow
void AddServiceFlow(ServiceFlow *serviceFlow)
add a service flow to the list
Definition:
ss-service-flow-manager.cc:101
ns3::SsServiceFlowManager::CONFIRMATION_CODE_SUCCESS
Definition:
ss-service-flow-manager.h:47
ns3::SsServiceFlowManager::SetMaxDsaReqRetries
void SetMaxDsaReqRetries(uint8_t maxDsaReqRetries)
sets the maximum retries on DSA request message
Definition:
ss-service-flow-manager.cc:69
ss-net-device.h
ns3::SsServiceFlowManager::m_dsaAck
DsaAck m_dsaAck
Definition:
ss-service-flow-manager.h:100
ns3::SsServiceFlowManager
Definition:
ss-service-flow-manager.h:42
ns3::SsServiceFlowManager::~SsServiceFlowManager
~SsServiceFlowManager(void)
Definition:
ss-service-flow-manager.cc:58
ns3::SsServiceFlowManager::m_currentTransactionId
uint16_t m_currentTransactionId
Definition:
ss-service-flow-manager.h:102
ns3::SsServiceFlowManager::SsServiceFlowManager
SsServiceFlowManager(Ptr< SubscriberStationNetDevice > device)
creates a service flow manager and attaches it to a device
Definition:
ss-service-flow-manager.cc:46
ns3::SsServiceFlowManager::InitiateServiceFlows
void InitiateServiceFlows(void)
Definition:
ss-service-flow-manager.cc:108
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::SsServiceFlowManager::m_pendingServiceFlow
ServiceFlow * m_pendingServiceFlow
Definition:
ss-service-flow-manager.h:107
ns3::ServiceFlow
This class implements service flows as described by the IEEE-802.16 standard.
Definition:
service-flow.h:39
ns3::SsServiceFlowManager::m_dsaAckTimeoutEvent
EventId m_dsaAckTimeoutEvent
Definition:
ss-service-flow-manager.h:97
ns3::SsServiceFlowManager::GetMaxDsaReqRetries
uint8_t GetMaxDsaReqRetries(void) const
Definition:
ss-service-flow-manager.cc:75
ns3::SsServiceFlowManager::CreateDsaReq
DsaReq CreateDsaReq(const ServiceFlow *serviceFlow)
Definition:
ss-service-flow-manager.cc:117
ns3::EventId
An identifier for simulation events.
Definition:
event-id.h:53
service-flow-manager.h
ns3::SsServiceFlowManager::CreateDsaAck
Ptr< Packet > CreateDsaAck(void)
Definition:
ss-service-flow-manager.cc:131
ns3::SsServiceFlowManager::m_transactionIdIndex
uint16_t m_transactionIdIndex
Definition:
ss-service-flow-manager.h:103
ns3::SsServiceFlowManager::DoDispose
void DoDispose(void)
Destructor implementation.
Definition:
ss-service-flow-manager.cc:63
ns3::SsServiceFlowManager::ProcessDsaRsp
void ProcessDsaRsp(const DsaRsp &dsaRsp)
Definition:
ss-service-flow-manager.cc:186
ns3::SsServiceFlowManager::m_dsaRspTimeoutEvent
EventId m_dsaRspTimeoutEvent
Definition:
ss-service-flow-manager.h:96
ns3::SsServiceFlowManager::m_dsaReqRetries
uint8_t m_dsaReqRetries
Definition:
ss-service-flow-manager.h:104
ns3::DsaReq
Introspection did not find any typical Config paths.
Definition:
mac-messages.h:262
ns3::ServiceFlowManager
The same service flow manager class serves both for BS and SS though some functions are exclusive to ...
Definition:
service-flow-manager.h:42
ns3::SsServiceFlowManager::CONFIRMATION_CODE_REJECT
Definition:
ss-service-flow-manager.h:47
ns3::SsServiceFlowManager::ScheduleDsaReq
void ScheduleDsaReq(const ServiceFlow *serviceFlow)
Definition:
ss-service-flow-manager.cc:144
src
wimax
model
ss-service-flow-manager.h
Generated on Thu Aug 13 2015 14:28:15 for ns-3 by
1.8.9.1