A Discrete-Event Network Simulator
API
edca-parameter-set.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2016 S├ębastien Deronne
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: S├ębastien Deronne <sebastien.deronne@gmail.com>
19 */
20
21#ifndef EDCA_PARAMETER_SET_H
22#define EDCA_PARAMETER_SET_H
23
25
26namespace ns3 {
27
35{
36public:
38
39 // Implementations of pure virtual methods of WifiInformationElement
40 WifiInformationElementId ElementId () const override;
41
47 void SetQosInfo (uint8_t qosInfo);
53 void SetBeAifsn (uint8_t aifsn);
59 void SetBeAci (uint8_t aci);
65 void SetBeCWmin (uint32_t cwMin);
71 void SetBeCWmax (uint32_t cwMax);
77 void SetBeTxopLimit (uint16_t txop);
83 void SetBkAifsn (uint8_t aifsn);
89 void SetBkAci (uint8_t aci);
95 void SetBkCWmin (uint32_t cwMin);
101 void SetBkCWmax (uint32_t cwMax);
107 void SetBkTxopLimit (uint16_t txop);
113 void SetViAifsn (uint8_t aifsn);
119 void SetViAci (uint8_t aci);
125 void SetViCWmin (uint32_t cwMin);
131 void SetViCWmax (uint32_t cwMax);
137 void SetViTxopLimit (uint16_t txop);
143 void SetVoAifsn (uint8_t aifsn);
149 void SetVoAci (uint8_t aci);
155 void SetVoCWmin (uint32_t cwMin);
161 void SetVoCWmax (uint32_t cwMax);
167 void SetVoTxopLimit (uint16_t txop);
168
174 uint8_t GetQosInfo (void) const;
180 uint8_t GetBeAifsn (void) const;
186 uint32_t GetBeCWmin (void) const;
192 uint32_t GetBeCWmax (void) const;
198 uint16_t GetBeTxopLimit (void) const;
204 uint8_t GetBkAifsn (void) const;
210 uint32_t GetBkCWmin (void) const;
216 uint32_t GetBkCWmax (void) const;
222 uint16_t GetBkTxopLimit (void) const;
228 uint8_t GetViAifsn (void) const;
234 uint32_t GetViCWmin (void) const;
240 uint32_t GetViCWmax (void) const;
246 uint16_t GetViTxopLimit (void) const;
252 uint8_t GetVoAifsn (void) const;
258 uint32_t GetVoCWmin (void) const;
264 uint32_t GetVoCWmax (void) const;
270 uint16_t GetVoTxopLimit (void) const;
271
272
273private:
274 uint16_t GetInformationFieldSize () const override;
276 uint16_t DeserializeInformationField (Buffer::Iterator start, uint16_t length) override;
277
278 uint8_t m_qosInfo;
279 uint8_t m_reserved;
284};
285
286} //namespace ns3
287
288#endif /* EDCA_PARAMETER_SET_H */
iterator in a Buffer instance
Definition: buffer.h:99
The EDCA Parameter Set.
void SetViTxopLimit(uint16_t txop)
Set the AC_VI TXOP Limit field in the EdcaParameterSet information element.
void SetViAifsn(uint8_t aifsn)
Set the AC_VI AIFSN field in the EdcaParameterSet information element.
uint16_t GetBeTxopLimit(void) const
Return the AC_BE TXOP Limit field in the EdcaParameterSet information element.
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
uint32_t GetBeCWmin(void) const
Return the AC_BE CWmin field in the EdcaParameterSet information element.
void SetVoAci(uint8_t aci)
Set the AC_VO ACI field in the EdcaParameterSet information element.
uint8_t GetVoAifsn(void) const
Return the AC_VO AIFSN field in the EdcaParameterSet information element.
uint8_t m_reserved
reserved
uint8_t GetQosInfo(void) const
Return the QoS Info field in the EdcaParameterSet information element.
void SetVoCWmax(uint32_t cwMax)
Set the AC_VO CWmax field in the EdcaParameterSet information element.
void SetViCWmin(uint32_t cwMin)
Set the AC_VI CWmin field in the EdcaParameterSet information element.
void SetVoTxopLimit(uint16_t txop)
Set the AC_VO TXOP Limit field in the EdcaParameterSet information element.
void SetVoAifsn(uint8_t aifsn)
Set the AC_VO AIFSN field in the EdcaParameterSet information element.
uint8_t GetBeAifsn(void) const
Return the AC_BE AIFSN field in the EdcaParameterSet information element.
uint16_t GetVoTxopLimit(void) const
Return the AC_VO TXOP Limit field in the EdcaParameterSet information element.
uint32_t GetVoCWmax(void) const
Return the AC_VO CWmax field in the EdcaParameterSet information element.
void SetQosInfo(uint8_t qosInfo)
Set the QoS Info field in the EdcaParameterSet information element.
uint32_t GetViCWmin(void) const
Return the AC_VI CWmin field in the EdcaParameterSet information element.
uint8_t GetBkAifsn(void) const
Return the AC_BK AIFSN field in the EdcaParameterSet information element.
void SetBkCWmin(uint32_t cwMin)
Set the AC_BK CWmin field in the EdcaParameterSet information element.
void SetViAci(uint8_t aci)
Set the AC_VI ACI field in the EdcaParameterSet information element.
void SetViCWmax(uint32_t cwMax)
Set the AC_VI CWmax field in the EdcaParameterSet information element.
void SetVoCWmin(uint32_t cwMin)
Set the AC_VO CWmin field in the EdcaParameterSet information element.
void SetBeTxopLimit(uint16_t txop)
Set the AC_BE TXOP Limit field in the EdcaParameterSet information element.
void SetBeCWmax(uint32_t cwMax)
Set the AC_BE CWmax field in the EdcaParameterSet information element.
void SetBeAci(uint8_t aci)
Set the AC_BE ACI field in the EdcaParameterSet information element.
uint32_t GetViCWmax(void) const
Return the AC_VI CWmax field in the EdcaParameterSet information element.
void SetBkCWmax(uint32_t cwMax)
Set the AC_BK CWmax field in the EdcaParameterSet information element.
void SetBkTxopLimit(uint16_t txop)
Set the AC_BK TXOP Limit field in the EdcaParameterSet information element.
uint8_t GetViAifsn(void) const
Return the AC_VI AIFSN field in the EdcaParameterSet information element.
void SetBkAifsn(uint8_t aifsn)
Set the AC_BK AIFSN field in the EdcaParameterSet information element.
uint32_t GetBeCWmax(void) const
Return the AC_BE CWmax field in the EdcaParameterSet information element.
uint32_t GetBkCWmax(void) const
Return the AC_BK CWmax field in the EdcaParameterSet information element.
uint8_t m_qosInfo
QOS info.
uint16_t GetViTxopLimit(void) const
Return the AC_VI TXOP Limit field in the EdcaParameterSet information element.
void SetBeCWmin(uint32_t cwMin)
Set the AC_BE CWmin field in the EdcaParameterSet information element.
uint32_t GetBkCWmin(void) const
Return the AC_BK CWmin field in the EdcaParameterSet information element.
void SetBkAci(uint8_t aci)
Set the AC_BK ACI field in the EdcaParameterSet information element.
uint32_t GetVoCWmin(void) const
Return the AC_VO CWmin field in the EdcaParameterSet information element.
uint16_t DeserializeInformationField(Buffer::Iterator start, uint16_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
uint16_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
uint16_t GetBkTxopLimit(void) const
Return the AC_BK TXOP Limit field in the EdcaParameterSet information element.
void SetBeAifsn(uint8_t aifsn)
Set the AC_BE AIFSN field in the EdcaParameterSet information element.
Information element, as defined in 802.11-2007 standard.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
def start()
Definition: core.py:1852