A Discrete-Event Network Simulator
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 
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);
69  void SetPacketClassifierRule(IpcsClassifierRecord packetClassifierRule);
82  Tlv ToTlv() const;
83 
84  private:
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.