File: World/ChannelControl.ned
C++ definition: click here
ChannelControl has exactly one instance in every network model that contains mobile or wireless nodes. This module gets informed about the location and movement of nodes, and determines which nodes are within communication or interference distance. This info is then used by the radio interfaces of nodes at transmissions.
Side effect: updates the containing compound module's display string according to the given playground size (sets "p=0,0;b=$playgroundSizeX, $playgroundSizeY").
This ChannelControl is a different implementation from the one in Mobility Framework 1.0a5: here we use sendDirect(), while the MF version used normal send() and dynamic connections.
Author: Andras Varga (based on MF's ChannelControl by Steffen Sroka and Daniel Willkomm)
See also: BasicMobility
The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.
Name | Type | Description |
---|---|---|
coreDebug | numeric const | debug switch for core framework |
playgroundSizeX | numeric const | x size of the playground (in meters) |
playgroundSizeY | numeric const | y size of the playground (in meters) |
pMax | numeric const | maximum sending power used for this network (in mW) |
sat | numeric const | signal attenuation threshold (in dBm) |
alpha | numeric const | path loss coefficient |
carrierFrequency | numeric const | carrier frequency of the channel (in Hz) |
numChannels | numeric const | number of radio channels (frequencies) |
simple ChannelControl parameters: coreDebug: numeric const, // debug switch for core framework playgroundSizeX: numeric const, // x size of the playground (in meters) playgroundSizeY: numeric const, // y size of the playground (in meters) pMax: numeric const, // maximum sending power used for this network (in mW) sat: numeric const, // signal attenuation threshold (in dBm) alpha: numeric const, // path loss coefficient carrierFrequency: numeric const, // carrier frequency of the channel (in Hz) numChannels: numeric const; // number of radio channels (frequencies) endsimple