NED File src/inet/linklayer/ieee80211/mac/ratecontrol/OnoeRateControl.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Implements ONOE, a credit-based rate control algorithm originally developed by Atheros. |
Source code¶
//
// Copyright (C) 2016 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.linklayer.ieee80211.mac.ratecontrol;
import inet.common.SimpleModule;
import inet.linklayer.ieee80211.mac.contract.IRateControl;
//
// Implements ONOE, a credit-based rate control algorithm originally
// developed by Atheros.
//
simple OnoeRateControl extends SimpleModule like IRateControl
{
parameters:
@class(OnoeRateControl);
double initialRate @unit(bps) = default(-1bps); // -1 means the fastest mandatory rate
double interval @unit(s) = default(1s);
displayStringTextFormat = default("{currentMode}");
@display("i=block/cogwheel");
@signal[datarateChanged];
@statistic[datarateChanged](title="datarate"; record=vector; interpolationmode=sample-hold);
}