A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
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) 2007,2008, 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
* Author: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
19
* Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
20
*/
21
22
#ifndef SERVICE_FLOW_MANAGER_H
23
#define SERVICE_FLOW_MANAGER_H
24
25
#include <stdint.h>
26
#include "ns3/event-id.h"
27
#include "
mac-messages.h
"
28
#include "ns3/buffer.h"
29
30
namespace
ns3
{
31
32
class
Packet;
33
class
ServiceFlow;
34
class
WimaxNetDevice;
35
class
SSRecord;
36
class
WimaxConnection;
37
42
class
ServiceFlowManager
:
public
Object
43
{
44
public
:
46
enum
ConfirmationCode
47
{
48
CONFIRMATION_CODE_SUCCESS
,
49
CONFIRMATION_CODE_REJECT
50
};
51
56
static
TypeId
GetTypeId
(
void
);
57
58
ServiceFlowManager
();
59
~ServiceFlowManager
(
void
);
60
void
DoDispose
(
void
);
61
66
void
AddServiceFlow
(
ServiceFlow
* serviceFlow);
72
ServiceFlow
*
GetServiceFlow
(uint32_t sfid)
const
;
78
ServiceFlow
*
GetServiceFlow
(
Cid
cid)
const
;
84
std::vector<ServiceFlow*>
GetServiceFlows
(
enum
ServiceFlow::SchedulingType
schedulingType)
const
;
85
89
bool
AreServiceFlowsAllocated
();
94
bool
AreServiceFlowsAllocated
(std::vector<ServiceFlow*>* serviceFlows);
99
bool
AreServiceFlowsAllocated
(std::vector<ServiceFlow*> serviceFlows);
103
ServiceFlow
*
GetNextServiceFlowToAllocate
();
104
108
uint32_t
GetNrServiceFlows
(
void
)
const
;
109
119
ServiceFlow
*
DoClassify
(
Ipv4Address
SrcAddress,
120
Ipv4Address
DstAddress,
121
uint16_t SrcPort,
122
uint16_t DstPort,
123
uint8_t Proto,
124
ServiceFlow::Direction
dir
)
const
;
125
private
:
126
std::vector<ServiceFlow*> *
m_serviceFlows
;
127
};
128
129
}
// namespace ns3
130
131
#endif
/* SERVICE_FLOW_MANAGER_H */
ns3::Cid
Cid class.
Definition:
cid.h:38
ns3::Ipv4Address
Ipv4 addresses are stored in host order in this class.
Definition:
ipv4-address.h:41
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:88
ns3::ServiceFlow
This class implements service flows as described by the IEEE-802.16 standard.
Definition:
service-flow.h:40
ns3::ServiceFlow::SchedulingType
SchedulingType
section 11.13.11 Service flow scheduling type, page 701
Definition:
service-flow.h:59
ns3::ServiceFlow::Direction
Direction
Direction enumeration.
Definition:
service-flow.h:44
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:43
ns3::ServiceFlowManager::GetNextServiceFlowToAllocate
ServiceFlow * GetNextServiceFlowToAllocate()
Definition:
service-flow-manager.cc:173
ns3::ServiceFlowManager::DoClassify
ServiceFlow * DoClassify(Ipv4Address SrcAddress, Ipv4Address DstAddress, uint16_t SrcPort, uint16_t DstPort, uint8_t Proto, ServiceFlow::Direction dir) const
Definition:
service-flow-manager.cc:83
ns3::ServiceFlowManager::GetServiceFlows
std::vector< ServiceFlow * > GetServiceFlows(enum ServiceFlow::SchedulingType schedulingType) const
Get service flows function.
Definition:
service-flow-manager.cc:134
ns3::ServiceFlowManager::AddServiceFlow
void AddServiceFlow(ServiceFlow *serviceFlow)
Add service flow function.
Definition:
service-flow-manager.cc:78
ns3::ServiceFlowManager::ConfirmationCode
ConfirmationCode
confirmation code enumeration as per Table 384 (not all codes implemented)
Definition:
service-flow-manager.h:47
ns3::ServiceFlowManager::CONFIRMATION_CODE_REJECT
@ CONFIRMATION_CODE_REJECT
Definition:
service-flow-manager.h:49
ns3::ServiceFlowManager::CONFIRMATION_CODE_SUCCESS
@ CONFIRMATION_CODE_SUCCESS
Definition:
service-flow-manager.h:48
ns3::ServiceFlowManager::GetServiceFlow
ServiceFlow * GetServiceFlow(uint32_t sfid) const
Get service flow by flow id.
Definition:
service-flow-manager.cc:104
ns3::ServiceFlowManager::GetNrServiceFlows
uint32_t GetNrServiceFlows(void) const
Definition:
service-flow-manager.cc:187
ns3::ServiceFlowManager::ServiceFlowManager
ServiceFlowManager()
Definition:
service-flow-manager.cc:57
ns3::ServiceFlowManager::~ServiceFlowManager
~ServiceFlowManager(void)
Definition:
service-flow-manager.cc:62
ns3::ServiceFlowManager::AreServiceFlowsAllocated
bool AreServiceFlowsAllocated()
Definition:
service-flow-manager.cc:148
ns3::ServiceFlowManager::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
service-flow-manager.cc:49
ns3::ServiceFlowManager::m_serviceFlows
std::vector< ServiceFlow * > * m_serviceFlows
the service flows
Definition:
service-flow-manager.h:126
ns3::ServiceFlowManager::DoDispose
void DoDispose(void)
Destructor implementation.
Definition:
service-flow-manager.cc:67
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
dir
std::string dir
Definition:
tcp-linux-reno.cc:51
mac-messages.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wimax
model
service-flow-manager.h
Generated on Tue Feb 6 2024 19:21:30 for ns-3 by
1.9.1