Package: inet.protocolelement.shaper
EligibilityTimeMeter
simple moduleA packet meter which measures the packet flow that is passing through and optionally attaches an ~EligibilityTimeTag to the packets. The tag contains the calculated simulation time when the packet becomes eligible for transmission according to the asynchronous shaper algorithm.
This module is part of the asynchronous shaper infrastructure.
<b>See also:</b> ~EligibilityTimeGate, ~EligibilityTimeFilter, ~EligibilityTimeQueue, ~EligibilityTimeTag
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Used in
| Name | Type | Description |
|---|---|---|
| PeekingUnderTheHoodShowcase | network | (no description) |
Known subclasses
| Name | Type | Description |
|---|---|---|
| GroupEligibilityTimeMeter | simple module | (no description) |
Extends
| Name | Type | Description |
|---|---|---|
| PacketMeterBase | simple module |
Base module for various packet meter modules. Derived modules must implement a single meterPacket() function which meters the flow of and attaches the required tags. |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "contains {numTokens} tk\nbucket empty at {bucketEmptyTime}\nmetered %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| clockModule | string | "" |
Relative path of a module that implements IClock(1,2); optional |
| packetOverheadLength | int | 0b |
Extra packet length taken into account, can be used to represent overhead added by lower layers |
| committedInformationRate | double |
Committed information rate of the packet flow |
|
| committedBurstSize | int |
Committed burst size of the packet flow |
|
| maxResidenceTime | double | -1s |
Maximum packet residence time measured from the packet arrival time to the meter module to the transmission eligibility time, not used by default |
Properties
| Name | Value | Description |
|---|---|---|
| class | EligibilityTimeMeter | |
| display | i=block/star |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| tokensChanged | double |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| numTokens | number of tokens | tokensChanged | vector | tk | linear |
Source code
// // A packet meter which measures the packet flow that is passing // through and optionally attaches an ~EligibilityTimeTag to the packets. The // tag contains the calculated simulation time when the packet becomes eligible // for transmission according to the asynchronous shaper algorithm. // // This module is part of the asynchronous shaper infrastructure. // // @see ~EligibilityTimeGate, ~EligibilityTimeFilter, ~EligibilityTimeQueue, ~EligibilityTimeTag // simple EligibilityTimeMeter extends PacketMeterBase like IPacketMeter { parameters: string clockModule = default(""); // Relative path of a module that implements IClock; optional int packetOverheadLength @unit(b) = default(0b); // Extra packet length taken into account, can be used to represent overhead added by lower layers double committedInformationRate @unit(bps); // Committed information rate of the packet flow int committedBurstSize @unit(b); // Committed burst size of the packet flow double maxResidenceTime @unit(s) = default(-1s); // Maximum packet residence time measured from the packet arrival time to the meter module to the transmission eligibility time, not used by default displayStringTextFormat = default("contains {numTokens} tk\nbucket empty at {bucketEmptyTime}\nmetered %p pk (%l)"); @class(EligibilityTimeMeter); @signal[tokensChanged](type=double); @statistic[numTokens](title="number of tokens"; source=tokensChanged; record=vector; unit=tk; interpolationmode=linear); }File: src/inet/protocolelement/shaper/EligibilityTimeMeter.ned