LengthBasedAggregatorPolicy
Package: inet.protocolelement.aggregation.policy
LengthBasedAggregatorPolicy
simple moduleA policy for aggregating subpackets based on their length
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
| Name | Type | Description |
|---|---|---|
| SimpleModule | simple module |
Base module for all INET simple modules. |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| minNumSubpackets | int | 0 | |
| maxNumSubpackets | int | ||
| minAggregatedLength | int | 0b | |
| maxAggregatedLength | int |
Properties
| Name | Value | Description |
|---|---|---|
| class | LengthBasedAggregatorPolicy | |
| display | i=block/star |
Source code
// // A policy for aggregating subpackets based on their length // simple LengthBasedAggregatorPolicy extends SimpleModule like IAggregatorPolicy { parameters: @class(LengthBasedAggregatorPolicy); int minNumSubpackets = default(0); int maxNumSubpackets; int minAggregatedLength @unit(b) = default(0b); int maxAggregatedLength @unit(b); @display("i=block/star"); @class(LengthBasedAggregatorPolicy); }File: src/inet/protocolelement/aggregation/policy/LengthBasedAggregatorPolicy.ned