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 * 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
15#include "wimax-tlv.h"
16
17namespace ns3
18{
19
20/**
21 * \ingroup wimax
22 * \brief CsParameters class
23 */
25{
26 public:
27 /// Action enumeration
28 enum Action
29 {
30 ADD = 0,
32 DELETE = 2
33 };
34
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 */
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 */
CsParameters class.
void SetClassifierDscAction(Action action)
sets the dynamic service classifier action to ADD, Change or delete.
Action
Action enumeration.
Tlv ToTlv() const
creates a tlv from the classifier record
Action GetClassifierDscAction() const
IpcsClassifierRecord GetPacketClassifierRule() const
Action m_classifierDscAction
classifier DSC action
IpcsClassifierRecord m_packetClassifierRule
packet classifier rule
void SetPacketClassifierRule(IpcsClassifierRecord packetClassifierRule)
sets the packet classifier rules
IpcsClassifierRecord class.
This class implements the Type-Len-Value structure channel encodings as described by "IEEEStandard fo...
Definition wimax-tlv.h:76
Every class exported by the ns3 library is enclosed in the ns3 namespace.