%description: Test shutdown and startup operations on WirelessHost when receiving. %#-------------------------------------------------------------------------------------------------------------- %inifile: omnetpp.ini [General] network = Test tkenv-plugin-path = ../../../etc/plugins ned-path = .;../../../../src;../../lib cmdenv-express-mode = false record-eventlog = true sim-time-limit = 100s #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" **.hasStatus = true **.scenarioManager.script = xmldoc("scenario.xml") *.host*.numRadios=1 *.host*.networkLayer.configurator.networkConfiguratorModule = "" *.hostsender.numUdpApps = 1 *.hostsender.udpApp[0].typename = "DHCPClient" *.host*.mobilityType = "StationaryMobility" **.mobility.constraintAreaMinX = 0m **.mobility.constraintAreaMinY = 0m **.mobility.constraintAreaMinZ = 0m **.mobility.constraintAreaMaxX = 1000m **.mobility.constraintAreaMaxY = 1000m **.mobility.constraintAreaMaxZ = 0m **.mobility.initFromDisplayString = false **.host.mobility.initialX = 100m **.hostsender.mobility.initialX = 900m **.host*.mobility.initialY = 500m **.mobility.initialZ = 0m %#-------------------------------------------------------------------------------------------------------------- %file: test.ned import inet.common.lifecycle.LifecycleController; import inet.common.scenario.ScenarioManager; import inet.node.inet.AdhocHost; import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium; network Test { submodules: radioMedium: Ieee80211ScalarRadioMedium; scenarioManager: ScenarioManager; lifecycleController: LifecycleController; host: AdhocHost; hostsender: AdhocHost; } %#-------------------------------------------------------------------------------------------------------------- %file: scenario.xml %#-------------------------------------------------------------------------------------------------------------- %contains-regex: stdout Test.host shutting down .* Test.host shut down .* Test.host starting up .* Test.host started .* Test.host shutting down .* Test.host shut down %#-------------------------------------------------------------------------------------------------------------- %not-contains: stdout undisposed object: %not-contains: stdout -- check module destructor %#--------------------------------------------------------------------------------------------------------------