GridNeighborCache.ned

NED File src/inet/physicallayer/wireless/common/neighborcache/GridNeighborCache.ned

Name Type Description
GridNeighborCache compound module

This neighbor cache model organizes radios in a 3 dimensional grid with constant cell size and updates periodically.

Source code

//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//


package inet.physicallayer.wireless.common.neighborcache;

import inet.physicallayer.wireless.common.contract.packetlevel.INeighborCache;

//
// This neighbor cache model organizes radios in a 3 dimensional grid with
// constant cell size and updates periodically.
//
module GridNeighborCache 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 to so many cells
        int cellCountY = default(10); // divide space to so many cells
        int cellCountZ = default(10); // divide space to so many cells
        double refillPeriod @unit(s) = default(1s);
        @display("i=block/table2");
        @class(GridNeighborCache);
}