123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- %description:
- Test shutdown and startup operations on AccessPoint.
- %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 = 3s
- #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=2
- *.host.mobilityType = "StationaryMobility"
- **.mobility.constraintAreaMinX = 0m
- **.mobility.constraintAreaMinY = 0m
- **.mobility.constraintAreaMinZ = 0m
- **.mobility.constraintAreaMaxX = 1000m
- **.mobility.constraintAreaMaxY = 1000m
- **.mobility.constraintAreaMaxZ = 0m
- **.mobility.initFromDisplayString = false
- **.mobility.initialX = 500m
- **.mobility.initialY = 500m
- **.mobility.initialZ = 0m
- # nic
- *.host*.wlan[*].typename = "IdealWirelessNic"
- *.host.wlan[*].bitrate = 54Mbps
- *.host*.wlan[*].mac.headerLength = 10B
- *.host*.wlan[*].mac.fullDuplex = false
- *.host*.wlan[*].radioType = "IdealRadio"
- *.host*.wlan[*].radio.transmitter.bitrate = 2Mbps
- *.host*.wlan[*].radio.transmitter.communicationRange = 1km
- *.host*.wlan[*].radio.transmitter.interferenceRange = 5km
- *.host*.wlan[*].radio.transmitter.detectionRange = 10km
- *.host*.wlan[*].radio.receiver.ignoreInterference = true
- %file: test.ned
- import inet.common.lifecycle.LifecycleController;
- import inet.node.wireless.AccessPoint;
- import inet.physicallayer.idealradio.IdealRadioMedium;
- import inet.common.scenario.ScenarioManager;
- network Test
- {
- submodules:
- radioMedium: IdealRadioMedium;
- scenarioManager: ScenarioManager;
- lifecycleController: LifecycleController;
- host: AccessPoint;
- }
- %file: scenario.xml
- <scenario>
- <at t="1.0">
- <tell module="lifecycleController" target="host" operation="NodeShutdownOperation"/>
- </at>
- <at t="2.0">
- <tell module="lifecycleController" target="host" operation="NodeStartOperation"/>
- </at>
- <at t="2.5">
- <tell module="lifecycleController" target="host" operation="NodeShutdownOperation"/>
- </at>
- </scenario>
- %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
- %#--------------------------------------------------------------------------------------------------------------
|