Compound Module GridObjectCache

Package: inet.environment.objectcache
File: src/inet/environment/objectcache/GridObjectCache.ned

This object cache model stores physical objects in a spatial grid. Each cell maintains a list of intersecting physical objects. The grid is aligned with the coordinate axes and it has a configurable cell size in all dimensions. The cell size parameters take precedence over the cell count parameters.

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters:

Name Type Default value Description
physicalEnvironmentModule string "^"
cellSizeX double 0m/0

NaN means use cell count

cellSizeY double 0m/0

NaN means use cell count

cellSizeZ double 0m/0

NaN means use cell count

cellCountX int 10

divide space to so many cells

cellCountY int 10

divide space to so many cells

cellCountZ int 10

divide space to so many cells

Properties:

Name Value Description
display i=block/table2
class GridObjectCache

Source code:

//
// This object cache model stores physical objects in a spatial grid. Each cell
// maintains a list of intersecting physical objects. The grid is aligned with
// the coordinate axes and it has a configurable cell size in all dimensions.
// The cell size parameters take precedence over the cell count parameters.
//
module GridObjectCache like IObjectCache
{
    parameters:
        string physicalEnvironmentModule = default("^");
        double cellSizeX @unit(m) = default(0m/0); // NaN means use cell count
        double cellSizeY @unit(m) = default(0m/0); // NaN means use cell count
        double cellSizeZ @unit(m) = default(0m/0); // NaN means use cell count
        int cellCountX = default(10); // divide space to so many cells
        int cellCountY = default(10); // divide space to so many cells
        int cellCountZ = default(10); // divide space to so many cells
        @display("i=block/table2");
        @class(GridObjectCache);
}