%description:

Carrier sense test for Ieee80211 out of range concurrent and delayed mutual transmission.

%file: test.ned

import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
import inet.node.inet.AdhocHost;
import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;

network Test
{
    submodules:
        radioMedium: Ieee80211ScalarRadioMedium;
        configurator: IPv4NetworkConfigurator;
        host1: AdhocHost;
        host2: AdhocHost;
}

%inifile: omnetpp.ini

[General]
network = Test
sim-time-limit = 100us
record-eventlog = true
ned-path = .;../../../../src
cmdenv-express-mode = false

#omnetpp 5.0 - 5.1 compatibility:
eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"

**.arpType = "GlobalARP"

**.host*.mobilityType = "StationaryMobility"
**.mobility.constraintAreaMinZ = 0m
**.mobility.constraintAreaMinX = 0m
**.mobility.constraintAreaMinY = 0m
**.mobility.constraintAreaMaxX = 1000m
**.mobility.constraintAreaMaxY = 1000m
**.mobility.constraintAreaMaxZ = 0m

# mac
**.contention.initialChannelBusy = false

# radio
**.radio.receiver.energyDetection = -100dBm

# ping app
*.host*.numPingApps = 1
*.host*.pingApp[0].count = 1
*.host*.pingApp[0].printPing = true
*.host1.pingApp[0].destAddr = "host2"
*.host2.pingApp[0].destAddr = "host1"

**.mobility.initFromDisplayString = false
**.mobility.initialY = 500m
**.mobility.initialZ = 0m

**.host1.mobility.initialX = 100m
**.host2.mobility.initialX = 900m
*.host1.pingApp[0].startTime = 0s
*.host2.pingApp[0].startTime = 3us

%#--------------------------------------------------------------------------------------------------------------
%contains: results/General-0.elog
not attempting
%#--------------------------------------------------------------------------------------------------------------
%contains-regex: stdout
Changing radio reception state from IDLE to BUSY\.
%#--------------------------------------------------------------------------------------------------------------
%not-contains: stdout
undisposed object:
%not-contains: stdout
-- check module destructor
%#--------------------------------------------------------------------------------------------------------------
