A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
cs-parameters.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 INRIA, UDcast
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
18
* <amine.ismail@udcast.com>
19
*
20
*/
21
22
#ifndef WIMAX_CS_PARAMETERS_H
23
#define WIMAX_CS_PARAMETERS_H
24
25
#include "
ipcs-classifier-record.h
"
26
#include "
wimax-tlv.h
"
27
28
namespace
ns3
29
{
30
35
class
CsParameters
36
{
37
public
:
39
enum
Action
40
{
41
ADD
= 0,
42
REPLACE
= 1,
43
DELETE
= 2
44
};
45
46
CsParameters
();
47
~CsParameters
();
52
CsParameters
(
Tlv
tlv);
58
CsParameters
(
Action
classifierDscAction,
IpcsClassifierRecord
classifier);
64
void
SetClassifierDscAction
(
Action
action
);
69
void
SetPacketClassifierRule
(
IpcsClassifierRecord
packetClassifierRule);
73
Action
GetClassifierDscAction
()
const
;
77
IpcsClassifierRecord
GetPacketClassifierRule
()
const
;
82
Tlv
ToTlv
()
const
;
83
84
private
:
85
Action
m_classifierDscAction
;
86
IpcsClassifierRecord
m_packetClassifierRule
;
87
};
88
89
}
// namespace ns3
90
#endif
/* WIMAX_CS_PARAMETERS_H */
ns3::CsParameters
CsParameters class.
Definition:
cs-parameters.h:36
ns3::CsParameters::SetClassifierDscAction
void SetClassifierDscAction(Action action)
sets the dynamic service classifier action to ADD, Change or delete.
Definition:
cs-parameters.cc:65
ns3::CsParameters::Action
Action
Action enumeration.
Definition:
cs-parameters.h:40
ns3::CsParameters::REPLACE
@ REPLACE
Definition:
cs-parameters.h:42
ns3::CsParameters::ADD
@ ADD
Definition:
cs-parameters.h:41
ns3::CsParameters::DELETE
@ DELETE
Definition:
cs-parameters.h:43
ns3::CsParameters::ToTlv
Tlv ToTlv() const
creates a tlv from the classifier record
Definition:
cs-parameters.cc:89
ns3::CsParameters::GetClassifierDscAction
Action GetClassifierDscAction() const
Definition:
cs-parameters.cc:77
ns3::CsParameters::GetPacketClassifierRule
IpcsClassifierRecord GetPacketClassifierRule() const
Definition:
cs-parameters.cc:83
ns3::CsParameters::m_classifierDscAction
Action m_classifierDscAction
classifier DSC action
Definition:
cs-parameters.h:85
ns3::CsParameters::m_packetClassifierRule
IpcsClassifierRecord m_packetClassifierRule
packet classifier rule
Definition:
cs-parameters.h:86
ns3::CsParameters::SetPacketClassifierRule
void SetPacketClassifierRule(IpcsClassifierRecord packetClassifierRule)
sets the packet classifier rules
Definition:
cs-parameters.cc:71
ns3::CsParameters::~CsParameters
~CsParameters()
Definition:
cs-parameters.cc:31
ns3::CsParameters::CsParameters
CsParameters()
Definition:
cs-parameters.cc:26
ns3::IpcsClassifierRecord
IpcsClassifierRecord class.
Definition:
ipcs-classifier-record.h:38
ns3::Tlv
This class implements the Type-Len-Value structure channel encodings as described by "IEEE Standard f...
Definition:
wimax-tlv.h:87
ipcs-classifier-record.h
check-style-clang-format.action
action
Definition:
check-style-clang-format.py:703
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wimax-tlv.h
src
wimax
model
cs-parameters.h
Generated on Sun Mar 3 2024 17:11:13 for ns-3 by
1.9.1