A Discrete-Event Network Simulator
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
26#include "wimax-tlv.h"
27
28namespace ns3
29{
30
31/**
32 * \ingroup wimax
33 * \brief CsParameters class
34 */
36{
37 public:
38 /// Action enumeration
39 enum Action
40 {
41 ADD = 0,
43 DELETE = 2
44 };
45
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 */
74 /**
75 * \return the the packet classifier rules
76 */
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 */
CsParameters class.
Definition: cs-parameters.h:36
void SetClassifierDscAction(Action action)
sets the dynamic service classifier action to ADD, Change or delete.
Action
Action enumeration.
Definition: cs-parameters.h:40
Tlv ToTlv() const
creates a tlv from the classifier record
Action GetClassifierDscAction() const
IpcsClassifierRecord GetPacketClassifierRule() const
Action m_classifierDscAction
classifier DSC action
Definition: cs-parameters.h:85
IpcsClassifierRecord m_packetClassifierRule
packet classifier rule
Definition: cs-parameters.h:86
void SetPacketClassifierRule(IpcsClassifierRecord packetClassifierRule)
sets the packet classifier rules
IpcsClassifierRecord class.
This class implements the Type-Len-Value structure channel encodings as described by "IEEE Standard f...
Definition: wimax-tlv.h:87
Every class exported by the ns3 library is enclosed in the ns3 namespace.