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
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
:
45
enum
ConfirmationCode
// as per Table 384 (not all codes implemented)
46
{
47
CONFIRMATION_CODE_SUCCESS
,
CONFIRMATION_CODE_REJECT
48
};
49
50
static
TypeId
GetTypeId
(
void
);
51
52
ServiceFlowManager
();
53
~ServiceFlowManager
(
void
);
54
void
DoDispose
(
void
);
55
56
void
AddServiceFlow
(
ServiceFlow
* serviceFlow);
57
ServiceFlow
*
GetServiceFlow
(uint32_t sfid)
const
;
58
ServiceFlow
*
GetServiceFlow
(
Cid
cid)
const
;
59
std::vector<ServiceFlow*>
GetServiceFlows
(
enum
ServiceFlow::SchedulingType
schedulingType)
const
;
60
64
bool
AreServiceFlowsAllocated
();
69
bool
AreServiceFlowsAllocated
(std::vector<ServiceFlow*>* serviceFlows);
74
bool
AreServiceFlowsAllocated
(std::vector<ServiceFlow*> serviceFlows);
78
ServiceFlow
*
GetNextServiceFlowToAllocate
();
79
83
uint32_t
GetNrServiceFlows
(
void
)
const
;
84
94
ServiceFlow
*
DoClassify
(
Ipv4Address
SrcAddress,
95
Ipv4Address
DstAddress,
96
uint16_t SrcPort,
97
uint16_t DstPort,
98
uint8_t Proto,
99
ServiceFlow::Direction
dir)
const
;
100
private
:
101
std::vector<ServiceFlow*> *
m_serviceFlows
;
102
};
103
104
}
// namespace ns3
105
106
#endif
/* SERVICE_FLOW_MANAGER_H */
ns3::ServiceFlowManager::GetTypeId
static TypeId GetTypeId(void)
Definition:
service-flow-manager.cc:49
ns3::ServiceFlowManager::GetServiceFlow
ServiceFlow * GetServiceFlow(uint32_t sfid) const
Definition:
service-flow-manager.cc:104
mac-messages.h
ns3::ServiceFlowManager::GetNextServiceFlowToAllocate
ServiceFlow * GetNextServiceFlowToAllocate()
Definition:
service-flow-manager.cc:173
ns3::ServiceFlowManager::ConfirmationCode
ConfirmationCode
Definition:
service-flow-manager.h:45
ns3::ServiceFlowManager::AreServiceFlowsAllocated
bool AreServiceFlowsAllocated()
Definition:
service-flow-manager.cc:148
ns3::ServiceFlowManager::GetNrServiceFlows
uint32_t GetNrServiceFlows(void) const
Definition:
service-flow-manager.cc:187
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::DoDispose
void DoDispose(void)
Destructor implementation.
Definition:
service-flow-manager.cc:67
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ServiceFlowManager::CONFIRMATION_CODE_SUCCESS
Definition:
service-flow-manager.h:47
ns3::Cid
Definition:
cid.h:35
ns3::ServiceFlowManager::GetServiceFlows
std::vector< ServiceFlow * > GetServiceFlows(enum ServiceFlow::SchedulingType schedulingType) const
Definition:
service-flow-manager.cc:134
ns3::ServiceFlow
This class implements service flows as described by the IEEE-802.16 standard.
Definition:
service-flow.h:39
ns3::Ipv4Address
Ipv4 addresses are stored in host order in this class.
Definition:
ipv4-address.h:40
ns3::ServiceFlowManager::m_serviceFlows
std::vector< ServiceFlow * > * m_serviceFlows
Definition:
service-flow-manager.h:101
ns3::ServiceFlowManager::AddServiceFlow
void AddServiceFlow(ServiceFlow *serviceFlow)
Definition:
service-flow-manager.cc:78
ns3::ServiceFlowManager::~ServiceFlowManager
~ServiceFlowManager(void)
Definition:
service-flow-manager.cc:62
ns3::ServiceFlowManager::CONFIRMATION_CODE_REJECT
Definition:
service-flow-manager.h:47
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:87
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::TypeId
a unique identifier for an interface.
Definition:
type-id.h:57
ns3::ServiceFlowManager::ServiceFlowManager
ServiceFlowManager()
Definition:
service-flow-manager.cc:57
ns3::ServiceFlow::SchedulingType
SchedulingType
Definition:
service-flow.h:53
ns3::ServiceFlow::Direction
Direction
Definition:
service-flow.h:42
src
wimax
model
service-flow-manager.h
Generated on Wed May 13 2015 14:59:37 for ns-3 by
1.8.9.1