Compound Module PhyMacHost

Package: org.mixim.examples.analogueModels
File: examples/analogueModels/PhyMacHost.ned

(no description)

BaseUtility BaseMobility PhyMacNic

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Networks:

AnalogueModels (network)

This example shows how to use AnalogueModels.

Parameters:

Name Type Default value Description
numHosts double

total number of hosts in the network

Properties:

Name Value Description
display bgb=180,200,white,,;bgp=10,10

Gates:

Name Direction Size Description
radioIn input

Unassigned submodule parameters:

Name Type Default value Description
utility.coreDebug bool

debug switch for the base framework

mobility.coreDebug bool

debug switch for the core framework

mobility.x double

x coordinate of the nodes' position (-1 = random)

mobility.y double

y coordinate of the nodes' position (-1 = random)

mobility.z double

z coordinate of the nodes' position (-1 = random)

nic.phy.coreDebug bool

debug switch for core framework

nic.phy.recordStats bool false

enable/disable tracking of statistics (eg. cOutvectors)

nic.phy.headerLength int 0

defines the length of the phy header (/preamble)

nic.phy.usePropagationDelay bool

Should transmission delay be simulated?

nic.phy.thermalNoise double

the strength of the thermal noise [dBm]

nic.phy.useThermalNoise bool

should thermal noise be considered?

nic.phy.analogueModels xml

Specification of the analogue models to use and their parameters

nic.phy.decider xml

Specification of the decider to use and its parameters

nic.phy.sensitivity double

The sensitivity of the physical layer [dBm]

nic.phy.maxTXPower double

The maximum transimission power of the physical layer [mW]

nic.phy.timeRXToTX double 0

switchTimes [s]:

nic.phy.timeRXToSleep double 0
nic.phy.timeTXToRX double 0
nic.phy.timeTXToSleep double 0
nic.phy.timeSleepToRX double 0
nic.phy.timeSleepToTX double 0
nic.phy.initialRadioState int 0

state the radio is initially in

nic.phy.radioMinAtt double 1.0

radios gain factor (attenuation) while receiving

nic.phy.radioMaxAtt double 0.0

radios gain factor (attenuation) while not receiving

nic.phy.nbRadioChannels int 1

Number of available radio channels. Defaults to single channel radio.

nic.phy.initialRadioChannel int 0

Initial radio channel.

Source code:

module PhyMacHost
{
    parameters:
        double numHosts; // total number of hosts in the network

        @display("bgb=180,200,white,,;bgp=10,10");
    gates:
        input radioIn;

    submodules:
        utility: BaseUtility {
            parameters:
                @display("p=130,60;i=block/blackboard");
        }
        mobility: BaseMobility {
            parameters:
                @display("p=130,130;i=block/cogwheel");
        }
        nic: PhyMacNic {
            parameters:
                @display("b=32,30;p=60,166;i=block/ifcard");
        }
    connections:

        radioIn --> nic.radioIn;

}