GridNeighborCache
Package: inet.physicallayer.wireless.common.neighborcache
GridNeighborCache
compound moduleThis neighbor cache model organizes radios in a three-dimensional grid with a constant cell size and updates periodically.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
| Name | Type | Description |
|---|---|---|
| Module | compound module |
Base module for all INET compound 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 |
| radioMediumModule | string | "^" | |
| cellSizeX | double | nan m |
NaN means use cell count |
| cellSizeY | double | nan m |
NaN means use cell count |
| cellSizeZ | double | nan m |
NaN means use cell count |
| cellCountX | int | 10 |
Divide space into so many cells |
| cellCountY | int | 10 |
Divide space into so many cells |
| cellCountZ | int | 10 |
Divide space into so many cells |
| refillPeriod | double | 1s |
Properties
| Name | Value | Description |
|---|---|---|
| class | GridNeighborCache | |
| display | i=block/table2 |
Source code
// // This neighbor cache model organizes radios in a three-dimensional grid with // a constant cell size and updates periodically. // module GridNeighborCache extends Module like INeighborCache { parameters: string radioMediumModule = default("^"); double cellSizeX @unit(m) = default(nan m); // NaN means use cell count double cellSizeY @unit(m) = default(nan m); // NaN means use cell count double cellSizeZ @unit(m) = default(nan m); // NaN means use cell count int cellCountX = default(10); // Divide space into so many cells int cellCountY = default(10); // Divide space into so many cells int cellCountZ = default(10); // Divide space into so many cells double refillPeriod @unit(s) = default(1s); @display("i=block/table2"); @class(GridNeighborCache); }File: src/inet/physicallayer/wireless/common/neighborcache/GridNeighborCache.ned