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
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7
* <amine.ismail@udcast.com>
8
*
9
*/
10
11
#ifndef WIMAX_CS_PARAMETERS_H
12
#define WIMAX_CS_PARAMETERS_H
13
14
#include "
ipcs-classifier-record.h
"
15
#include "
wimax-tlv.h
"
16
17
namespace
ns3
18
{
19
20
/**
21
* \ingroup wimax
22
* \brief CsParameters class
23
*/
24
class
CsParameters
25
{
26
public
:
27
/// Action enumeration
28
enum
Action
29
{
30
ADD
= 0,
31
REPLACE
= 1,
32
DELETE
= 2
33
};
34
35
CsParameters
();
36
~CsParameters
();
37
/**
38
* \brief creates a convergence sub-layer parameters from a tlv
39
* \param tlv the TLV
40
*/
41
CsParameters
(
Tlv
tlv);
42
/**
43
* \brief creates a convergence sub-layer parameters from an ipcs classifier record
44
* \param classifierDscAction the DCS action type
45
* \param classifier the IPCS classifier record
46
*/
47
CsParameters
(Action classifierDscAction,
IpcsClassifierRecord
classifier);
48
/**
49
* \brief sets the dynamic service classifier action to ADD, Change or delete. Only ADD is
50
* supported
51
* \param action the action enumeration
52
*/
53
void
SetClassifierDscAction
(Action action);
54
/**
55
* \brief sets the packet classifier rules
56
* \param packetClassifierRule the IPCS classifier record
57
*/
58
void
SetPacketClassifierRule
(
IpcsClassifierRecord
packetClassifierRule);
59
/**
60
* \return the dynamic service classifier action
61
*/
62
Action
GetClassifierDscAction
()
const
;
63
/**
64
* \return the the packet classifier rules
65
*/
66
IpcsClassifierRecord
GetPacketClassifierRule
()
const
;
67
/**
68
* \brief creates a tlv from the classifier record
69
* \return the created tlv
70
*/
71
Tlv
ToTlv
()
const
;
72
73
private
:
74
Action
m_classifierDscAction
;
///< classifier DSC action
75
IpcsClassifierRecord
m_packetClassifierRule
;
///< packet classifier rule
76
};
77
78
}
// namespace ns3
79
#endif
/* WIMAX_CS_PARAMETERS_H */
ns3::CsParameters
CsParameters class.
Definition
cs-parameters.h:25
ns3::CsParameters::SetClassifierDscAction
void SetClassifierDscAction(Action action)
sets the dynamic service classifier action to ADD, Change or delete.
Definition
cs-parameters.cc:54
ns3::CsParameters::Action
Action
Action enumeration.
Definition
cs-parameters.h:29
ns3::CsParameters::REPLACE
@ REPLACE
Definition
cs-parameters.h:31
ns3::CsParameters::ADD
@ ADD
Definition
cs-parameters.h:30
ns3::CsParameters::DELETE
@ DELETE
Definition
cs-parameters.h:32
ns3::CsParameters::ToTlv
Tlv ToTlv() const
creates a tlv from the classifier record
Definition
cs-parameters.cc:78
ns3::CsParameters::GetClassifierDscAction
Action GetClassifierDscAction() const
Definition
cs-parameters.cc:66
ns3::CsParameters::GetPacketClassifierRule
IpcsClassifierRecord GetPacketClassifierRule() const
Definition
cs-parameters.cc:72
ns3::CsParameters::m_classifierDscAction
Action m_classifierDscAction
classifier DSC action
Definition
cs-parameters.h:74
ns3::CsParameters::m_packetClassifierRule
IpcsClassifierRecord m_packetClassifierRule
packet classifier rule
Definition
cs-parameters.h:75
ns3::CsParameters::SetPacketClassifierRule
void SetPacketClassifierRule(IpcsClassifierRecord packetClassifierRule)
sets the packet classifier rules
Definition
cs-parameters.cc:60
ns3::CsParameters::~CsParameters
~CsParameters()
Definition
cs-parameters.cc:20
ns3::CsParameters::CsParameters
CsParameters()
Definition
cs-parameters.cc:15
ns3::IpcsClassifierRecord
IpcsClassifierRecord class.
Definition
ipcs-classifier-record.h:27
ns3::Tlv
This class implements the Type-Len-Value structure channel encodings as described by "IEEEStandard fo...
Definition
wimax-tlv.h:76
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 Mon Nov 4 2024 19:38:11 for ns-3 by
1.11.0