A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
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
31
/**
32
* \ingroup wimax
33
* \brief CsParameters class
34
*/
35
class
CsParameters
36
{
37
public
:
38
/// Action enumeration
39
enum
Action
40
{
41
ADD
= 0,
42
REPLACE
= 1,
43
DELETE
= 2
44
};
45
46
CsParameters
();
47
~CsParameters
();
48
/**
49
* \brief creates a convergence sub-layer parameters from a tlv
50
* \param tlv the TLV
51
*/
52
CsParameters
(
Tlv
tlv);
53
/**
54
* \brief creates a convergence sub-layer parameters from an ipcs classifier record
55
* \param classifierDscAction the DCS action type
56
* \param classifier the IPCS classifier record
57
*/
58
CsParameters
(
Action
classifierDscAction,
IpcsClassifierRecord
classifier);
59
/**
60
* \brief sets the dynamic service classifier action to ADD, Change or delete. Only ADD is
61
* supported
62
* \param action the action enumeration
63
*/
64
void
SetClassifierDscAction
(
Action
action);
65
/**
66
* \brief sets the packet classifier rules
67
* \param packetClassifierRule the IPCS classifier record
68
*/
69
void
SetPacketClassifierRule
(
IpcsClassifierRecord
packetClassifierRule);
70
/**
71
* \return the dynamic service classifier action
72
*/
73
Action
GetClassifierDscAction
()
const
;
74
/**
75
* \return the the packet classifier rules
76
*/
77
IpcsClassifierRecord
GetPacketClassifierRule
()
const
;
78
/**
79
* \brief creates a tlv from the classifier record
80
* \return the created tlv
81
*/
82
Tlv
ToTlv
()
const
;
83
84
private
:
85
Action
m_classifierDscAction
;
///< classifier DSC action
86
IpcsClassifierRecord
m_packetClassifierRule
;
///< packet classifier rule
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
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 Tue May 28 2024 23:41:11 for ns-3 by
1.9.6