#include <GridNeighborCache.h>
◆ Radios
◆ GridNeighborCache()
| inet::physicallayer::GridNeighborCache::GridNeighborCache |
( |
| ) |
|
◆ ~GridNeighborCache()
| inet::physicallayer::GridNeighborCache::~GridNeighborCache |
( |
| ) |
|
|
virtual |
◆ addRadio()
| void inet::physicallayer::GridNeighborCache::addRadio |
( |
const IRadio * |
radio | ) |
|
|
overridevirtual |
Implements inet::physicallayer::INeighborCache.
88 Coord radioPos = radio->getAntenna()->getMobility()->getCurrentPosition();
92 Coord newConstraintAreaMin =
radioMedium->getMediumLimitCache()->getMinConstraintArea();
93 Coord newConstraintAreaMax =
radioMedium->getMediumLimitCache()->getMaxConstraintArea();
101 else if (initialized())
◆ fillCubeVector()
| void inet::physicallayer::GridNeighborCache::fillCubeVector |
( |
| ) |
|
|
protected |
◆ handleMessage()
| void inet::physicallayer::GridNeighborCache::handleMessage |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
57 if (!msg->isSelfMessage())
58 throw cRuntimeError(
"This module only handles self messages");
59 EV_DETAIL <<
"Updating the grid cells" << endl;
◆ initialize()
| void inet::physicallayer::GridNeighborCache::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
32 radioMedium.reference(
this,
"radioMediumModule",
true);
45 cellSize.
x = constraintAreaSize.x / par(
"cellCountX").doubleValue();
47 cellSize.
y = constraintAreaSize.y / par(
"cellCountY").doubleValue();
49 cellSize.
z = constraintAreaSize.z / par(
"cellCountZ").doubleValue();
◆ numInitStages()
| virtual int inet::physicallayer::GridNeighborCache::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ printToStream()
| std::ostream & inet::physicallayer::GridNeighborCache::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
66 stream <<
"GridNeighborCache";
◆ removeRadio()
| void inet::physicallayer::GridNeighborCache::removeRadio |
( |
const IRadio * |
radio | ) |
|
|
overridevirtual |
Implements inet::physicallayer::INeighborCache.
110 Coord newConstraintAreaMin =
radioMedium->getMediumLimitCache()->getMinConstraintArea();
111 Coord newConstraintAreaMax =
radioMedium->getMediumLimitCache()->getMaxConstraintArea();
122 throw cRuntimeError(
"You can't remove radio: %d because it is not in our radio vector", radio->getId());
◆ sendToNeighbors()
| void inet::physicallayer::GridNeighborCache::sendToNeighbors |
( |
IRadio * |
transmitter, |
|
|
const IWirelessSignal * |
signal, |
|
|
double |
range |
|
) |
| const |
|
overridevirtual |
Sends the provided frame (using the radio medium) to all neighbors within the given range.
Implements inet::physicallayer::INeighborCache.
129 Coord transmitterPos = transmitter->getAntenna()->getMobility()->getCurrentPosition();
130 GridNeighborCacheVisitor visitor(
radioMedium, transmitter, signal);
◆ cellSize
| Coord inet::physicallayer::GridNeighborCache::cellSize |
|
protected |
◆ constraintAreaMax
| Coord inet::physicallayer::GridNeighborCache::constraintAreaMax |
|
protected |
◆ constraintAreaMin
| Coord inet::physicallayer::GridNeighborCache::constraintAreaMin |
|
protected |
◆ grid
| SpatialGrid* inet::physicallayer::GridNeighborCache::grid |
|
protected |
◆ maxSpeed
| double inet::physicallayer::GridNeighborCache::maxSpeed |
|
protected |
◆ radioMedium
◆ radios
| Radios inet::physicallayer::GridNeighborCache::radios |
|
protected |
◆ refillCellsTimer
| cMessage* inet::physicallayer::GridNeighborCache::refillCellsTimer |
|
protected |
◆ refillPeriod
| double inet::physicallayer::GridNeighborCache::refillPeriod |
|
protected |
The documentation for this class was generated from the following files: