wlanRateControl Class
Description
Use the wlanRateControl base class to implement a rate control algorithm in
a subclass.
The wlanRateControl class is a handle class.
Properties
Protected Properties
Custom contextual information template for each receiver, specified as a
structure. The value of this property specifies the information that each receiver
must maintain. The system uses this value as the default for the
CustomContext field in each structure of the
STAContext property. An inheriting subclass must define this
property in its implementation.
Attributes:
GetAccess | protected |
SetAccess | protected |
Abstract | true |
Data Types:
Algorithm-specific contextual information for each STA, specified as an array of structures. Each structure contains these fields:
ReceiverID— Receiver node IDCustomContext— Custom context that holds per-receiver information.
The node assigns the default values for this property. For each receiver that
communicates with the node, the node adds an additional structure to this property. In
each structure, the ReceiverID field contains the actual receiver
ID, and the CustomContext field contains the default value defined
by the CustomContextTemplate abstract property.
Note that an inheriting subclass can modify and use
CustomContext for each receiver in its implementation.
Attributes:
GetAccess | protected |
SetAccess | protected |
Abstract | false |
Data Types:
Methods
deviceConfigurationValue | Retrieve specified device configuration |
deviceConfigurationType | Return device configuration type |
bssConfigurationValue | Retrieve basic rate set value of specified BSS configuration |
maxMCS | Return highest MCS index selectable for specified receiver |
maxNumSpaceTimeStreams | Return maximum number of space-time streams selectable for specified receiver |
mapReceiverToSTAContext | Return index of STA context property for specified receiver |
selectRateParameters | Select rate parameters for frame transmission |
processTransmissionStatus | Use frame transmission status to carry out post-transmission operations |
More About
To create a custom rate control algorithm using the wlanRateControl base
class, follow these steps.
Implement the custom rate control subclass:
Inherit from the
wlanRateControlbase class. The class definition must have this format, wherecustomRateControlAlgorithmis the name of your custom rate control subclass.classdef customRateControlAlgorithm < wlanRateControl ... endImplement the
CustomContextTemplateproperty to define custom contextual information for each receiver. TheCustomContextfield in each structure of theSTAContextproperty contains the value defined by theCustomContextTemplateproperty.Override the
selectRateParametersandprocessTransmissionStatusmethods.
Save the class definition in a
.mfile.In a simulation script, create an object of the
customRateControlAlgorithmsubclass. Specify this custom rate control object to theRateControlproperty of thewlanLinkConfigorwlanDeviceConfigobject and implement it into a WLAN node.
Version History
Introduced in R2026a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)