├── src ├── inet_stub │ ├── package.ned │ ├── README │ ├── mobility │ │ ├── models │ │ │ ├── MobilityAccess.cc │ │ │ ├── StationaryMobility.cc │ │ │ └── ANSimMobility.dtd │ │ └── IMobility.ned │ └── linklayer │ │ ├── IWirelessNic.ned │ │ └── INic.ned ├── base │ ├── modules │ │ ├── BaseBattery.cc │ │ ├── BaseBattery.ned │ │ ├── BaseArp.ned │ │ ├── BaseNetwLayer.ned │ │ ├── IBaseApplLayer.ned │ │ ├── BaseMacLayer.ned │ │ ├── IBaseNetwLayer.ned │ │ ├── ArpInterface.h │ │ └── IWirelessMac.ned │ ├── phyLayer │ │ ├── ChannelState.cc │ │ ├── Mapping.h │ │ └── Decider.cc │ ├── messages │ │ ├── MiXiMMacPkt.h │ │ └── MiXiMAirFrame.h │ └── utils │ │ ├── winsupport.h │ │ └── winsupport.cc └── modules │ ├── package.ned │ ├── mac │ ├── Mac80211.cc │ └── AlohaMacLayer.ned │ ├── node │ ├── Host802154A.ned │ ├── Host802154_2400MHz.ned │ ├── Host80211.ned │ ├── HostBMAC.ned │ └── HostLMAC.ned │ ├── messages │ ├── DummyRoutePkt.msg │ ├── WiseRoutePkt.msg │ ├── LMacPkt.msg │ ├── AggrPkt.msg │ ├── ProbabilisticBroadcastPkt.msg │ └── AirFrameUWBIR.msg │ ├── nic │ ├── Nic80211_Decider.xml │ ├── Nic80211MultiChannel_Decider.xml │ ├── IWirelessNicUpperCtrl.ned │ ├── Nic802154_TI_CC2420_Decider.xml │ ├── NicLMac.ned │ ├── Nic802154_TI_CC1100_Decider.xml │ ├── NicCSMA.ned │ └── NicBMAC.ned │ ├── application │ └── BurstApplLayerBattery.ned │ ├── phy │ ├── PhyLayer.ned │ └── PhyLayerBattery.ned │ ├── connectionManager │ └── UnitDisk.cc │ ├── netw │ └── ArpHost.ned │ └── utility │ ├── phyPER.ned │ └── SimTracer.ned ├── tests ├── power │ ├── deviceTest │ │ ├── .gitignore │ │ ├── valid │ │ │ ├── omnetpp_5.vec │ │ │ ├── omnetpp_6.vec │ │ │ ├── omnetpp_9.vec │ │ │ ├── Thirteen-0.sca │ │ │ ├── omnetpp_10.vec │ │ │ ├── omnetpp_3.vec │ │ │ ├── omnetpp_1.vec │ │ │ ├── omnetpp_4.vec │ │ │ ├── omnetpp_2.vec │ │ │ └── omnetpp_7.vec │ │ └── Network.ned │ ├── deviceTestAccts │ │ ├── .gitignore │ │ ├── README.txt │ │ ├── valid │ │ │ ├── omnetpp_1.vec │ │ │ └── omnetpp_2.vec │ │ ├── Network.ned │ │ └── SimpleHost.ned │ ├── deviceTestAll │ │ ├── .gitignore │ │ └── README.txt │ ├── deviceTestMulti │ │ ├── .gitignore │ │ ├── README.txt │ │ ├── valid │ │ │ ├── omnetpp_4.vec │ │ │ ├── omnetpp_2.vec │ │ │ ├── omnetpp_1.vec │ │ │ └── omnetpp_3.vec │ │ └── Network.ned │ ├── makefrag.vc │ ├── updateOutput.sh │ ├── makefrag │ ├── Nic80211Test │ │ ├── config.xml │ │ ├── Host.ned │ │ ├── valid │ │ │ ├── omnetpp_wifi_lowpow.ini │ │ │ ├── out_50 │ │ │ │ ├── node15.power │ │ │ │ ├── node6.power │ │ │ │ ├── node10.power │ │ │ │ ├── node12.power │ │ │ │ ├── node16.power │ │ │ │ ├── node18.power │ │ │ │ ├── node3.power │ │ │ │ ├── node5.power │ │ │ │ ├── node7.power │ │ │ │ ├── node9.power │ │ │ │ ├── node0.power │ │ │ │ ├── node1.power │ │ │ │ ├── node13.power │ │ │ │ ├── node14.power │ │ │ │ ├── node17.power │ │ │ │ ├── node2.power │ │ │ │ ├── node4.power │ │ │ │ └── node8.power │ │ │ └── out_10 │ │ │ │ ├── node5.power │ │ │ │ ├── node6.power │ │ │ │ ├── node7.power │ │ │ │ ├── node0.power │ │ │ │ ├── node1.power │ │ │ │ ├── node10.power │ │ │ │ ├── node11.power │ │ │ │ ├── node12.power │ │ │ │ ├── node13.power │ │ │ │ ├── node14.power │ │ │ │ ├── node15.power │ │ │ │ ├── node16.power │ │ │ │ ├── node18.power │ │ │ │ ├── node2.power │ │ │ │ ├── node3.power │ │ │ │ ├── node8.power │ │ │ │ ├── node9.power │ │ │ │ ├── node17.power │ │ │ │ ├── node19.power │ │ │ │ └── node4.power │ │ └── omnetpp_wifi_lowpow.ini │ ├── PowerTestNetwork.ned │ ├── runTests.sh │ └── utils │ │ └── Subscriber.ned ├── package.ned ├── coord │ ├── updateExpOutput.sh │ ├── omnetpp.ini │ └── CoordTest.ned ├── decider │ ├── updateExpOutput.sh │ ├── omnetpp.ini │ └── DeciderTest.ned ├── mapping │ ├── omnetpp.ini │ ├── updateExpOutput.sh │ └── MappingTest.ned ├── nicTest │ ├── updateExpOutput.sh │ ├── AnalogueModels.xml │ ├── Nic80211MultiChannel_Decider.xml │ ├── TestHost.ned │ ├── TestApp.ned │ └── NicTests.ned ├── radioState │ ├── updateExpOutput.sh │ ├── omnetpp.ini │ └── RadioStateTest.ned ├── basePhyLayer │ ├── updateExpOutput.sh │ ├── TestPhyLayer.ned │ ├── TestMacLayer.ned │ ├── TestNic.ned │ ├── TestHost.ned │ ├── Network.ned │ ├── BasePhyTests.ned │ └── config.xml ├── channelInfo │ ├── updateExpOutput.sh │ ├── omnetpp.ini │ └── ChannelInfoTest.ned ├── connectionManager │ ├── updateExpOutput.sh │ ├── ConnectedRNodePhyLayer.cc │ ├── ConnectedBCNodePhyLayer.cc │ ├── NotConnectedRNodePhyLayer.cc │ ├── NotConnectedBCNodePhyLayer.cc │ ├── TestNic.ned │ └── TestCM.ned └── testUtils │ ├── TestManager.ned │ └── asserts.cc ├── examples ├── bmac │ ├── run │ └── config.xml ├── lmac │ ├── run │ └── config.xml ├── package.ned ├── CSMAMac │ ├── run │ ├── SimpleNetwLayer.cc │ ├── PhyMacNic.ned │ ├── SimpleNetwLayer.ned │ ├── PhyMacHost.ned │ └── config.xml ├── Mac80211 │ ├── run │ ├── config.xml │ └── README ├── WSNRouting │ ├── run │ ├── .gitignore │ ├── README │ └── Nic802154_TI_CC2420_Decider.xml ├── baseNetwork │ ├── run │ ├── README │ ├── config.xml │ └── TestBaseNetwork.ned ├── ieee802154a │ ├── run │ ├── .gitignore │ ├── channels │ │ ├── freespacechannel.xml │ │ ├── cm1.xml │ │ ├── cm2.xml │ │ ├── cm3.xml │ │ ├── cm5.xml │ │ ├── cm6.xml │ │ ├── cm7.xml │ │ ├── noshadow │ │ │ ├── cm5.xml │ │ │ ├── cm7.xml │ │ │ ├── cm1.xml │ │ │ ├── cm2.xml │ │ │ ├── cm3.xml │ │ │ ├── cm6.xml │ │ │ ├── ghassemzadeh-los.xml │ │ │ └── ghassemzadeh-nlos.xml │ │ ├── shadow │ │ │ ├── cm1.xml │ │ │ ├── cm2.xml │ │ │ ├── cm3.xml │ │ │ ├── cm5.xml │ │ │ ├── cm6.xml │ │ │ ├── cm7.xml │ │ │ ├── ghassemzadeh-los.xml │ │ │ └── ghassemzadeh-nlos.xml │ │ ├── ghassemzadeh-los.xml │ │ └── ghassemzadeh-nlos.xml │ └── receivers │ │ ├── 3dB-trace.xml │ │ ├── 3dB.xml │ │ ├── 3dBseg.xml │ │ ├── 3dBAlwaysSync.xml │ │ ├── 3dBsync.xml │ │ └── 3dBsegDefault.xml ├── analogueModels │ ├── run │ ├── SimpleMacLayer.ned │ ├── SamplePhyLayer.ned │ ├── PhyMacNic.ned │ ├── PhyMacHost.ned │ └── config.xml ├── ieee802154Narrow │ ├── run │ ├── .gitignore │ ├── PhyMacHost.ned │ ├── Nic802154_TI_CC2420_Decider.xml │ └── config.xml └── multiConnectionManager │ ├── run │ ├── decider.xml │ ├── PhyMacHost.ned │ ├── GSMmodels.xml │ └── ISMmodels.xml ├── examples-inet ├── adhoc │ ├── run │ ├── README │ ├── config.xml │ └── Adhoc.ned ├── hybrid │ ├── run │ ├── host80211.route │ ├── host802154.route │ ├── hostInet80211.route │ ├── hostEthernet.route │ ├── config802154.xml │ ├── hybridRouter.route │ ├── Nic802154_TI_CC2420_Decider.xml │ ├── config80211.xml │ ├── RouterWithBattery.ned │ ├── README │ └── WirelessHostWithBattery.ned ├── package.ned ├── bulktransfer │ ├── run │ ├── config.xml │ └── README └── run_mixim-inet ├── .nedfolders ├── CHANGELOG ├── templates ├── baseNetworkWizard │ ├── README │ ├── package.ned.ftl │ ├── BaseMobility.ini.fti │ ├── ProbBroadcast.ini.fti │ ├── Flooding.ini.fti │ ├── AdaptiveProbBroadcast.ini.fti │ ├── BaseNetwLayer.ini.fti │ ├── BurstApplLayer.ini.fti │ ├── ConstSpeedMobility.ini.fti │ ├── SensorApplLayer.ini.fti │ ├── TrafficGen.ini.fti │ ├── CSMANic.ned.ftl │ ├── Host802154.ned.ftl │ ├── template.properties │ ├── WiseRoute.ini.fti │ ├── Nic802154_TI_CC2420_Decider.xml.ftl │ ├── 80211.ini.fti │ └── BaseNetwork.ned.ftl └── analogueModel │ ├── package.ned.ftl │ ├── deciderConfig.xml.ftl │ ├── OwnPhyLayer.ned.ftl │ ├── BaseNode.ned.ftl │ ├── BaseNic.ned.ftl │ ├── OwnPhyLayer.cc.ftl │ ├── OwnPhyLayer.h.ftl │ ├── config-template.xml.ftl │ ├── BaseNetwork.ned.ftl │ └── template.properties ├── doc ├── images │ ├── WBAN.png │ ├── power.png │ ├── BMACFSM.png │ ├── LMACFSM.jpg │ ├── Mobility.png │ ├── OmnetIm.png │ ├── csmaFSM.png │ ├── makeMove.png │ ├── BaseUtility.png │ ├── MiximBasics.png │ ├── RecvDetails.png │ ├── BasePhyLayer.png │ ├── MappingDetail.png │ ├── borderPolicies.png │ ├── ConnectionManager.png │ └── RadioStatemachine.png └── interfaces │ ├── MacLayer │ ├── mac.pdf │ ├── csma.jude │ ├── messages.jude │ ├── messages │ │ ├── RX.png │ │ └── TX.png │ └── Makefile │ ├── Power │ └── hoststate.jude │ ├── Basics │ ├── mixim_basics.png │ └── mixim_basics.jude │ ├── Obstacles │ ├── src │ │ ├── filters.png │ │ ├── obstacles.jude │ │ └── obstacles.png │ └── main.tex │ ├── PhyLayer │ ├── physicallayer.pdf │ ├── jude │ │ ├── modelling.jude │ │ ├── req_spec.jude │ │ └── SignalDetail.jude │ └── tex │ │ ├── modelling │ │ └── modelling.tex │ │ ├── preamble │ │ └── preamble.tex │ │ └── images │ │ ├── modelling │ │ ├── onMACPkt.png │ │ ├── Radio_detail.png │ │ ├── onAirFrame.png │ │ ├── PhyMacMessages.png │ │ ├── Radio_members.png │ │ ├── Signal_members.png │ │ ├── class_diagram.png │ │ ├── receive_detail.png │ │ ├── AirFrame_members.png │ │ ├── BaseDecider_members.png │ │ ├── ChannelInfo_members.png │ │ ├── AnalogueModel_members.png │ │ ├── BasePhyLayer_members.png │ │ ├── DeciderModule_members.png │ │ ├── MacToPhyCtrlInfo_members.png │ │ └── MacToPhyInterface_members.png │ │ ├── emf │ │ └── modelling │ │ │ ├── onMACPkt.emf │ │ │ ├── onAirFrame.emf │ │ │ ├── class_diagram.emf │ │ │ ├── PhyMacMessages.emf │ │ │ ├── Signal_members.emf │ │ │ ├── receive_detail.emf │ │ │ ├── AirFrame_members.emf │ │ │ ├── BasePhyLayer_members.emf │ │ │ ├── ChannelInfo_members.emf │ │ │ ├── AnalogueModel_members.emf │ │ │ ├── DeciderModule_members.emf │ │ │ └── MacToPhyCtrlInfo_members.emf │ │ ├── SignalDetail │ │ ├── mapping_detail.png │ │ ├── mapping_scheme.pdf │ │ ├── signal_members.png │ │ ├── mapping_members.png │ │ └── mapping_iterator_member.png │ │ └── req_spec │ │ └── stateMachineMode.png │ ├── BaseUtility │ ├── BaseUtility.jude │ └── BaseUtility.png │ └── ConnectionManager │ ├── ConnectionManager.jude │ └── ConnectionManager.png ├── images └── status │ ├── battery.png │ ├── battery_0.png │ ├── battery_20.png │ ├── battery_40.png │ ├── battery_60.png │ └── battery_80.png ├── .csettings ├── org.omnetpp.cdt.gnu.config.debug.146852972_org.eclipse.cdt.core.externalSettings └── org.omnetpp.cdt.gnu.config.release.1124870465_org.eclipse.cdt.core.externalSettings ├── .oppbuildspec └── .oppfeatures /src/inet_stub/package.ned: -------------------------------------------------------------------------------- 1 | package inet; 2 | -------------------------------------------------------------------------------- /tests/power/deviceTest/.gitignore: -------------------------------------------------------------------------------- 1 | /run.log 2 | -------------------------------------------------------------------------------- /tests/package.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests; 2 | 3 | -------------------------------------------------------------------------------- /tests/power/deviceTestAccts/.gitignore: -------------------------------------------------------------------------------- 1 | /run.log 2 | -------------------------------------------------------------------------------- /tests/power/deviceTestAll/.gitignore: -------------------------------------------------------------------------------- 1 | /run.log 2 | -------------------------------------------------------------------------------- /tests/power/deviceTestMulti/.gitignore: -------------------------------------------------------------------------------- 1 | /run.log 2 | -------------------------------------------------------------------------------- /examples/bmac/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../../src/run_mixim $* 3 | -------------------------------------------------------------------------------- /examples/lmac/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../../src/run_mixim $* 3 | -------------------------------------------------------------------------------- /examples/package.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples; 2 | 3 | -------------------------------------------------------------------------------- /examples-inet/adhoc/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../run_mixim-inet $* 3 | -------------------------------------------------------------------------------- /examples-inet/hybrid/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../run_mixim-inet $* 3 | -------------------------------------------------------------------------------- /examples/CSMAMac/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../run_miximexamples $* 3 | -------------------------------------------------------------------------------- /examples/Mac80211/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../../src/run_mixim $* 3 | -------------------------------------------------------------------------------- /src/base/modules/BaseBattery.cc: -------------------------------------------------------------------------------- 1 | #include "BaseBattery.h" 2 | -------------------------------------------------------------------------------- /src/modules/package.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules; 2 | 3 | -------------------------------------------------------------------------------- /examples-inet/package.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.inet; 2 | 3 | -------------------------------------------------------------------------------- /examples/WSNRouting/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../../src/run_mixim $* 3 | -------------------------------------------------------------------------------- /examples/baseNetwork/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../../src/run_mixim $* 3 | -------------------------------------------------------------------------------- /examples/ieee802154a/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../../src/run_mixim $* 3 | -------------------------------------------------------------------------------- /.nedfolders: -------------------------------------------------------------------------------- 1 | examples 2 | src/base 3 | src/inet_stub 4 | src/modules 5 | -------------------------------------------------------------------------------- /examples-inet/bulktransfer/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../run_mixim-inet $* 3 | -------------------------------------------------------------------------------- /examples/analogueModels/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../run_miximexamples $* 3 | -------------------------------------------------------------------------------- /examples/ieee802154Narrow/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../run_miximexamples $* 3 | -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/CHANGELOG -------------------------------------------------------------------------------- /examples/multiConnectionManager/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../../src/run_mixim $* 3 | -------------------------------------------------------------------------------- /examples/ieee802154a/.gitignore: -------------------------------------------------------------------------------- 1 | /outber.tmp 2 | /outchp.tmp 3 | /errber.tmp 4 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/coord/updateExpOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./runTest.sh "update-exp-output" 4 | -------------------------------------------------------------------------------- /tests/coord/omnetpp.ini: -------------------------------------------------------------------------------- 1 | [General] 2 | user-interface = Cmdenv 3 | network = CoordTest 4 | -------------------------------------------------------------------------------- /tests/decider/updateExpOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./runTest.sh "update-exp-output" 4 | -------------------------------------------------------------------------------- /tests/mapping/omnetpp.ini: -------------------------------------------------------------------------------- 1 | [General] 2 | user-interface = Cmdenv 3 | network = MappingTest 4 | -------------------------------------------------------------------------------- /tests/mapping/updateExpOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./runTest.sh "update-exp-output" 4 | -------------------------------------------------------------------------------- /tests/nicTest/updateExpOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./runTest.sh "update-exp-output" 4 | -------------------------------------------------------------------------------- /tests/radioState/updateExpOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./runTest.sh "update-exp-output" 4 | -------------------------------------------------------------------------------- /doc/images/WBAN.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/WBAN.png -------------------------------------------------------------------------------- /doc/images/power.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/power.png -------------------------------------------------------------------------------- /examples/WSNRouting/.gitignore: -------------------------------------------------------------------------------- 1 | /errpro.tmp 2 | /outcon.tmp 3 | /outflo.tmp 4 | /outpro.tmp 5 | -------------------------------------------------------------------------------- /examples/ieee802154Narrow/.gitignore: -------------------------------------------------------------------------------- 1 | /out1.tmp 2 | /out2.tmp 3 | /out3.tmp 4 | /out3-7.tmp 5 | -------------------------------------------------------------------------------- /tests/basePhyLayer/updateExpOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./runTest.sh "update-exp-output" 4 | -------------------------------------------------------------------------------- /tests/channelInfo/updateExpOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./runTest.sh "update-exp-output" 4 | -------------------------------------------------------------------------------- /doc/images/BMACFSM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/BMACFSM.png -------------------------------------------------------------------------------- /doc/images/LMACFSM.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/LMACFSM.jpg -------------------------------------------------------------------------------- /doc/images/Mobility.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/Mobility.png -------------------------------------------------------------------------------- /doc/images/OmnetIm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/OmnetIm.png -------------------------------------------------------------------------------- /doc/images/csmaFSM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/csmaFSM.png -------------------------------------------------------------------------------- /doc/images/makeMove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/makeMove.png -------------------------------------------------------------------------------- /templates/baseNetworkWizard/package.ned.ftl: -------------------------------------------------------------------------------- 1 | <#if nedPackageName!="">package ${nedPackageName}; -------------------------------------------------------------------------------- /tests/connectionManager/updateExpOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./runTest.sh "update-exp-output" 4 | -------------------------------------------------------------------------------- /tests/radioState/omnetpp.ini: -------------------------------------------------------------------------------- 1 | [General] 2 | user-interface = Cmdenv 3 | network = RadioStateTest 4 | -------------------------------------------------------------------------------- /doc/images/BaseUtility.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/BaseUtility.png -------------------------------------------------------------------------------- /doc/images/MiximBasics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/MiximBasics.png -------------------------------------------------------------------------------- /doc/images/RecvDetails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/RecvDetails.png -------------------------------------------------------------------------------- /images/status/battery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/images/status/battery.png -------------------------------------------------------------------------------- /doc/images/BasePhyLayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/BasePhyLayer.png -------------------------------------------------------------------------------- /doc/images/MappingDetail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/MappingDetail.png -------------------------------------------------------------------------------- /examples-inet/adhoc/README: -------------------------------------------------------------------------------- 1 | Network for testing hosts containing an INET network stack and a MiXiM 802.11 NIC. 2 | -------------------------------------------------------------------------------- /images/status/battery_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/images/status/battery_0.png -------------------------------------------------------------------------------- /images/status/battery_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/images/status/battery_20.png -------------------------------------------------------------------------------- /images/status/battery_40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/images/status/battery_40.png -------------------------------------------------------------------------------- /images/status/battery_60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/images/status/battery_60.png -------------------------------------------------------------------------------- /images/status/battery_80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/images/status/battery_80.png -------------------------------------------------------------------------------- /src/modules/mac/Mac80211.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/src/modules/mac/Mac80211.cc -------------------------------------------------------------------------------- /doc/images/borderPolicies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/borderPolicies.png -------------------------------------------------------------------------------- /doc/interfaces/MacLayer/mac.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/MacLayer/mac.pdf -------------------------------------------------------------------------------- /doc/images/ConnectionManager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/ConnectionManager.png -------------------------------------------------------------------------------- /doc/images/RadioStatemachine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/images/RadioStatemachine.png -------------------------------------------------------------------------------- /doc/interfaces/MacLayer/csma.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/MacLayer/csma.jude -------------------------------------------------------------------------------- /src/modules/node/Host802154A.ned: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/src/modules/node/Host802154A.ned -------------------------------------------------------------------------------- /doc/interfaces/Power/hoststate.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/Power/hoststate.jude -------------------------------------------------------------------------------- /tests/decider/omnetpp.ini: -------------------------------------------------------------------------------- 1 | [General] 2 | user-interface = Cmdenv 3 | network = DeciderTest 4 | cmdenv-express-mode = false 5 | -------------------------------------------------------------------------------- /doc/interfaces/Basics/mixim_basics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/Basics/mixim_basics.png -------------------------------------------------------------------------------- /doc/interfaces/MacLayer/messages.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/MacLayer/messages.jude -------------------------------------------------------------------------------- /tests/channelInfo/omnetpp.ini: -------------------------------------------------------------------------------- 1 | [General] 2 | user-interface = Cmdenv 3 | network = ChannelInfoTest 4 | cmdenv-express-mode = false 5 | -------------------------------------------------------------------------------- /doc/interfaces/Basics/mixim_basics.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/Basics/mixim_basics.jude -------------------------------------------------------------------------------- /doc/interfaces/MacLayer/messages/RX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/MacLayer/messages/RX.png -------------------------------------------------------------------------------- /doc/interfaces/MacLayer/messages/TX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/MacLayer/messages/TX.png -------------------------------------------------------------------------------- /doc/interfaces/Obstacles/src/filters.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/Obstacles/src/filters.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/physicallayer.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/physicallayer.pdf -------------------------------------------------------------------------------- /src/modules/node/Host802154_2400MHz.ned: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/src/modules/node/Host802154_2400MHz.ned -------------------------------------------------------------------------------- /tests/connectionManager/ConnectedRNodePhyLayer.cc: -------------------------------------------------------------------------------- 1 | #include "ConnectedRNodePhyLayer.h" 2 | 3 | Define_Module( ConnectedRNodePhyLayer); 4 | -------------------------------------------------------------------------------- /tests/nicTest/AnalogueModels.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /doc/interfaces/BaseUtility/BaseUtility.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/BaseUtility/BaseUtility.jude -------------------------------------------------------------------------------- /doc/interfaces/BaseUtility/BaseUtility.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/BaseUtility/BaseUtility.png -------------------------------------------------------------------------------- /doc/interfaces/Obstacles/src/obstacles.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/Obstacles/src/obstacles.jude -------------------------------------------------------------------------------- /doc/interfaces/Obstacles/src/obstacles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/Obstacles/src/obstacles.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/jude/modelling.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/jude/modelling.jude -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/jude/req_spec.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/jude/req_spec.jude -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/modelling/modelling.tex: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /templates/analogueModel/package.ned.ftl: -------------------------------------------------------------------------------- 1 | <#if wizardType!="simplemodule"> 2 | <#if nedPackageName!="">package ${nedPackageName}; 3 | -------------------------------------------------------------------------------- /tests/connectionManager/ConnectedBCNodePhyLayer.cc: -------------------------------------------------------------------------------- 1 | #include "ConnectedBCNodePhyLayer.h" 2 | 3 | Define_Module( ConnectedBCNodePhyLayer); 4 | -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/jude/SignalDetail.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/jude/SignalDetail.jude -------------------------------------------------------------------------------- /tests/connectionManager/NotConnectedRNodePhyLayer.cc: -------------------------------------------------------------------------------- 1 | #include "NotConnectedRNodePhyLayer.h" 2 | 3 | Define_Module( NotConnectedRNodePhyLayer); 4 | -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/preamble/preamble.tex: -------------------------------------------------------------------------------- 1 | \section{Preamble} 2 | 3 | \subsection{What is the Physical Layer} 4 | TODO: write description 5 | -------------------------------------------------------------------------------- /src/base/modules/BaseBattery.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.base.modules; 2 | 3 | simple BaseBattery 4 | { 5 | @display("i=block/control"); 6 | } 7 | 8 | -------------------------------------------------------------------------------- /src/inet_stub/README: -------------------------------------------------------------------------------- 1 | This folder contains files required to build MiXiM without a full blown INET-framework. 2 | These files were copied from INET 2.1. -------------------------------------------------------------------------------- /tests/connectionManager/NotConnectedBCNodePhyLayer.cc: -------------------------------------------------------------------------------- 1 | #include "NotConnectedBCNodePhyLayer.h" 2 | 3 | Define_Module( NotConnectedBCNodePhyLayer); 4 | -------------------------------------------------------------------------------- /doc/interfaces/ConnectionManager/ConnectionManager.jude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/ConnectionManager/ConnectionManager.jude -------------------------------------------------------------------------------- /doc/interfaces/ConnectionManager/ConnectionManager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/ConnectionManager/ConnectionManager.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/onMACPkt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/onMACPkt.png -------------------------------------------------------------------------------- /templates/baseNetworkWizard/BaseMobility.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].mobilityType = "BaseMobility" 2 | **.node[*].mobility.debug = false 3 | **.node[*].mobility.updateInterval = 0.1s -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/onMACPkt.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/onMACPkt.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/Radio_detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/Radio_detail.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/onAirFrame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/onAirFrame.png -------------------------------------------------------------------------------- /templates/baseNetworkWizard/ProbBroadcast.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].networkType = "ProbabilisticBroadcast" 2 | **.node[*].netwl.stats = true 3 | **.node[*].netwl.headerLength = 24 bit -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/onAirFrame.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/onAirFrame.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/PhyMacMessages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/PhyMacMessages.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/Radio_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/Radio_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/Signal_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/Signal_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/class_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/class_diagram.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/receive_detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/receive_detail.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/SignalDetail/mapping_detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/SignalDetail/mapping_detail.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/SignalDetail/mapping_scheme.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/SignalDetail/mapping_scheme.pdf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/SignalDetail/signal_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/SignalDetail/signal_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/class_diagram.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/class_diagram.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/AirFrame_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/AirFrame_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/req_spec/stateMachineMode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/req_spec/stateMachineMode.png -------------------------------------------------------------------------------- /templates/baseNetworkWizard/Flooding.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].networkType = "Flood" 2 | #**.node[*].netwl.debug = true 3 | **.node[*].netwl.stats = true 4 | **.node[*].netwl.headerLength = 24 bit -------------------------------------------------------------------------------- /tests/power/makefrag.vc: -------------------------------------------------------------------------------- 1 | Nic80211Test_dir: utils_dir 2 | deviceTest_dir: utils_dir 3 | deviceTestAccts_dir: utils_dir 4 | deviceTestAll_dir: utils_dir 5 | deviceTestMulti_dir: utils_dir 6 | -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/SignalDetail/mapping_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/SignalDetail/mapping_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/PhyMacMessages.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/PhyMacMessages.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/Signal_members.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/Signal_members.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/receive_detail.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/receive_detail.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/BaseDecider_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/BaseDecider_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/ChannelInfo_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/ChannelInfo_members.png -------------------------------------------------------------------------------- /templates/baseNetworkWizard/AdaptiveProbBroadcast.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].networkType = "AdaptiveProbabilisticBroadcast" 2 | **.node[*].netwl.stats = true 3 | **.node[*].netwl.headerLength = 24 bit -------------------------------------------------------------------------------- /tests/power/updateOutput.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | for f in *.vec 4 | do 5 | cp $f valid/$f 6 | done 7 | cd results 8 | for f in *.sca 9 | do 10 | cp $f ../valid/$f 11 | done 12 | -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/AirFrame_members.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/AirFrame_members.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/AnalogueModel_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/AnalogueModel_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/BasePhyLayer_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/BasePhyLayer_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/DeciderModule_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/DeciderModule_members.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/BasePhyLayer_members.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/BasePhyLayer_members.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/ChannelInfo_members.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/ChannelInfo_members.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/MacToPhyCtrlInfo_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/MacToPhyCtrlInfo_members.png -------------------------------------------------------------------------------- /templates/baseNetworkWizard/BaseNetwLayer.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].networkType = "BaseNetwLayer" 2 | **.node[*].netwl.debug = false 3 | **.node[*].netwl.stats = false 4 | **.node[*].netwl.headerLength = 32bit -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/SignalDetail/mapping_iterator_member.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/SignalDetail/mapping_iterator_member.png -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/AnalogueModel_members.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/AnalogueModel_members.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/DeciderModule_members.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/DeciderModule_members.emf -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/modelling/MacToPhyInterface_members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/modelling/MacToPhyInterface_members.png -------------------------------------------------------------------------------- /templates/baseNetworkWizard/BurstApplLayer.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].applicationType = "BurstApplLayer" 2 | **.node[*].appl.debug = false 3 | **.node[*].appl.headerLength = 512bit 4 | **.node[*].appl.burstSize = 3 -------------------------------------------------------------------------------- /tests/power/makefrag: -------------------------------------------------------------------------------- 1 | # preserve default target 2 | all: $(TARGET) 3 | 4 | deviceTest_dir deviceTestAccts_dir deviceTestAll_dir deviceTestMulti_dir Nic80211Test_dir: utils_dir 5 | 6 | .PHONY: utils 7 | 8 | -------------------------------------------------------------------------------- /doc/interfaces/PhyLayer/tex/images/emf/modelling/MacToPhyCtrlInfo_members.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnetpp-models/mixim/HEAD/doc/interfaces/PhyLayer/tex/images/emf/modelling/MacToPhyCtrlInfo_members.emf -------------------------------------------------------------------------------- /src/modules/messages/DummyRoutePkt.msg: -------------------------------------------------------------------------------- 1 | 2 | 3 | cplusplus {{ 4 | #include 5 | }} 6 | 7 | class NetwPkt; 8 | 9 | message DummyRoutePkt extends NetwPkt { 10 | int networkID; 11 | } 12 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/ConstSpeedMobility.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].mobilityType = "ConstSpeedMobility" 2 | **.node[*].mobility.debug = false 3 | **.node[*].mobility.speed = 1mps 4 | **.node[*].mobility.updateInterval = 0.1s -------------------------------------------------------------------------------- /examples/CSMAMac/SimpleNetwLayer.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * SimpleNetwLayer.cc 3 | * 4 | * Created on: 29.08.2008 5 | * Author: Karl Wessel 6 | */ 7 | 8 | #include "SimpleNetwLayer.h" 9 | 10 | Define_Module(SimpleNetwLayer); 11 | -------------------------------------------------------------------------------- /src/base/phyLayer/ChannelState.cc: -------------------------------------------------------------------------------- 1 | #include "ChannelState.h" 2 | 3 | bool ChannelState::isIdle() const 4 | { 5 | return idle; 6 | } 7 | 8 | double ChannelState::getRSSI() const 9 | { 10 | return rssi; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /tests/mapping/MappingTest.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.mapping; 2 | 3 | import org.mixim.tests.TestObject; 4 | 5 | simple MappingTest extends TestObject 6 | { 7 | @class(MappingTest); 8 | @isNetwork(true); 9 | } 10 | -------------------------------------------------------------------------------- /examples-inet/hybrid/host80211.route: -------------------------------------------------------------------------------- 1 | ifconfig: 2 | 3 | # WLAN to router 4 | name: wlan0 inet_addr: 145.236.0.3 5 | 6 | ifconfigend. 7 | 8 | 9 | route: 10 | default: 145.236.0.1 0.0.0.0 G 0 wlan0 11 | routeend. -------------------------------------------------------------------------------- /examples-inet/hybrid/host802154.route: -------------------------------------------------------------------------------- 1 | ifconfig: 2 | 3 | # LR-WPAN to router 4 | name: wlan0 inet_addr: 145.236.0.4 5 | 6 | ifconfigend. 7 | 8 | 9 | route: 10 | default: 145.236.0.1 0.0.0.0 G 0 wlan0 11 | routeend. -------------------------------------------------------------------------------- /examples-inet/hybrid/hostInet80211.route: -------------------------------------------------------------------------------- 1 | ifconfig: 2 | 3 | # INET's WLAN to router 4 | name: wlan0 inet_addr: 145.236.0.5 5 | 6 | ifconfigend. 7 | 8 | 9 | route: 10 | default: 145.236.0.1 0.0.0.0 G 0 wlan0 11 | routeend. -------------------------------------------------------------------------------- /examples/multiConnectionManager/decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/radioState/RadioStateTest.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.radioState; 2 | 3 | import org.mixim.tests.TestObject; 4 | 5 | simple RadioStateTest extends TestObject 6 | { 7 | @class(RadioStateTest); 8 | @isNetwork(true); 9 | } 10 | -------------------------------------------------------------------------------- /examples-inet/hybrid/hostEthernet.route: -------------------------------------------------------------------------------- 1 | ifconfig: 2 | 3 | # ethernet card 0 to router 4 | name: eth0 inet_addr: 145.236.0.2 5 | 6 | ifconfigend. 7 | 8 | 9 | route: 10 | default: 145.236.0.1 0.0.0.0 G 0 eth0 11 | routeend. 12 | -------------------------------------------------------------------------------- /tests/decider/DeciderTest.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.decider; 2 | 3 | import org.mixim.tests.TestObject; 4 | 5 | simple DeciderTest extends TestObject 6 | { 7 | parameters: 8 | @class(DeciderTest); 9 | @isNetwork(true); 10 | } 11 | -------------------------------------------------------------------------------- /src/modules/nic/Nic80211_Decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/coord/CoordTest.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.coord; 2 | 3 | import org.mixim.tests.TestObject; 4 | 5 | // Test network for class Coord tests. 6 | simple CoordTest extends TestObject 7 | { 8 | @class(CoordTest); 9 | @isNetwork(true); 10 | } 11 | -------------------------------------------------------------------------------- /src/modules/node/Host80211.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.node; 2 | 3 | // 4 | // Example host module using an 802.11 Network interface card. 5 | // 6 | module Host80211 extends WirelessNode 7 | { 8 | parameters: 9 | nicType = "Nic80211"; 10 | } 11 | -------------------------------------------------------------------------------- /examples/analogueModels/SimpleMacLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.analogueModels; 2 | 3 | import org.mixim.base.modules.BaseMacLayer; 4 | 5 | simple SimpleMacLayer extends BaseMacLayer 6 | { 7 | parameters: 8 | @class(SimpleMacLayer); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/SensorApplLayer.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].applicationType = "SensorApplLayer" 2 | **.appl.trafficType = "periodic" 3 | **.appl.trafficParam = 1 #in seconds 4 | **.appl.broadcastPackets = true 5 | **.appl.nbPackets = 3 6 | **.appl.initializationTime = 10s -------------------------------------------------------------------------------- /examples/CSMAMac/PhyMacNic.ned: -------------------------------------------------------------------------------- 1 | 2 | package org.mixim.examples.CSMAMac; 3 | 4 | import org.mixim.modules.nic.WirelessNic; 5 | 6 | module PhyMacNic extends WirelessNic 7 | { 8 | parameters: 9 | macType = "CSMAMacLayer"; 10 | int id; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /examples/analogueModels/SamplePhyLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.analogueModels; 2 | 3 | import org.mixim.base.phyLayer.BasePhyLayer; 4 | 5 | simple SamplePhyLayer extends BasePhyLayer 6 | { 7 | parameters: 8 | @class(SamplePhyLayer); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /src/base/messages/MiXiMMacPkt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MiXiMMacPkt.h 3 | * 4 | * Created on: 07.03.2012 5 | * Author: lindig 6 | */ 7 | 8 | #ifndef MIXIMMACPKT_H_ 9 | #define MIXIMMACPKT_H_ 10 | 11 | #include "messages/MacPkt_m.h" 12 | 13 | #endif /* MIXIMMACPKT_H_ */ 14 | -------------------------------------------------------------------------------- /tests/nicTest/Nic80211MultiChannel_Decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /examples/WSNRouting/README: -------------------------------------------------------------------------------- 1 | This example shows how to simulate wireless sensor networks. 2 | Three different routing protocols are considered, for 3 | different traffic types: 4 | convergecast, with Wiseroute. 5 | network-level broadcast, with flooding and probabilistic broadcast. 6 | -------------------------------------------------------------------------------- /src/modules/nic/Nic80211MultiChannel_Decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/base/phyLayer/Mapping.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mapping.h 3 | * 4 | * Created on: 26.08.2008 5 | * Author: Karl Wessel 6 | */ 7 | 8 | #ifndef MAPPING_H_ 9 | #define MAPPING_H_ 10 | 11 | #include "MappingBase.h" 12 | #include "MappingUtils.h" 13 | 14 | #endif /* MAPPING_H_ */ 15 | -------------------------------------------------------------------------------- /tests/basePhyLayer/TestPhyLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.basePhyLayer; 2 | import org.mixim.base.phyLayer.BasePhyLayer; 3 | 4 | simple TestPhyLayer extends BasePhyLayer 5 | { 6 | parameters: 7 | @class(TestPhyLayer); 8 | int protocol = default(0); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /tests/basePhyLayer/TestMacLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.basePhyLayer; 2 | 3 | import org.mixim.base.modules.BaseMacLayer; 4 | 5 | simple TestMacLayer extends BaseMacLayer 6 | { 7 | parameters: 8 | @class(TestMacLayer); 9 | headerLength = 16bit; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /src/base/messages/MiXiMAirFrame.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MiXiMAirFrame.h 3 | * 4 | * Created on: 07.03.2012 5 | * Author: lindig 6 | */ 7 | 8 | #ifndef MIXIMAIRFRAME_H_ 9 | #define MIXIMAIRFRAME_H_ 10 | 11 | #include "messages/MiximAirFrame_m.h" 12 | 13 | #endif /* MIXIMAIRFRAME_H_ */ 14 | -------------------------------------------------------------------------------- /examples/analogueModels/PhyMacNic.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.analogueModels; 2 | 3 | import org.mixim.modules.nic.WirelessNic; 4 | 5 | module PhyMacNic extends WirelessNic 6 | { 7 | parameters: 8 | macType = "SimpleMacLayer"; 9 | phyType = "SamplePhyLayer"; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /templates/analogueModel/deciderConfig.xml.ftl: -------------------------------------------------------------------------------- 1 | <#if wizardType!="simplemodule"> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/channelInfo/ChannelInfoTest.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.channelInfo; 2 | 3 | import org.mixim.tests.TestObject; 4 | 5 | // Test network for class ChannelInfo tests. 6 | simple ChannelInfoTest extends TestObject 7 | { 8 | @class(ChannelInfoTest); 9 | @isNetwork(true); 10 | } 11 | -------------------------------------------------------------------------------- /doc/interfaces/MacLayer/Makefile: -------------------------------------------------------------------------------- 1 | PAPER=mac 2 | 3 | all: mac.pdf 4 | 5 | $(PAPER).pdf: $(PAPER).ps 6 | ps2pdf $(PAPER).ps 7 | 8 | $(PAPER).ps: $(PAPER).dvi 9 | dvips -Ppdf -G0 $(PAPER).dvi 10 | mac.tex: mac.lyx 11 | lyx --export latex mac.lyx 12 | 13 | mac.dvi: mac.tex 14 | latex mac.tex 15 | 16 | -------------------------------------------------------------------------------- /templates/analogueModel/OwnPhyLayer.ned.ftl: -------------------------------------------------------------------------------- 1 | <@setoutput path="${phyName}.ned" /> 2 | ${bannerComment} 3 | 4 | <#if nedPackageName!="">package ${nedPackageName}; 5 | 6 | import org.mixim.modules.phy.PhyLayer; 7 | 8 | simple ${phyName} extends PhyLayer 9 | { 10 | parameters: 11 | @class(${phyName}); 12 | } -------------------------------------------------------------------------------- /examples/ieee802154a/channels/freespacechannel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.csettings/org.omnetpp.cdt.gnu.config.debug.146852972_org.eclipse.cdt.core.externalSettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.csettings/org.omnetpp.cdt.gnu.config.release.1124870465_org.eclipse.cdt.core.externalSettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /examples/multiConnectionManager/PhyMacHost.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.multiConnectionManager; 2 | 3 | import org.mixim.modules.node.WirelessNode; 4 | 5 | module PhyMacHost extends WirelessNode 6 | { 7 | parameters: 8 | nicType = "WirelessNic"; 9 | int numHosts; // total number of hosts in the network 10 | } 11 | -------------------------------------------------------------------------------- /tests/basePhyLayer/TestNic.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.basePhyLayer; 2 | 3 | import org.mixim.modules.nic.WirelessNic; 4 | 5 | module TestNic extends WirelessNic 6 | { 7 | parameters: 8 | phyType = "org.mixim.tests.basePhyLayer.TestPhyLayer"; 9 | macType = "org.mixim.tests.basePhyLayer.TestMacLayer"; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /examples-inet/hybrid/config802154.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/TrafficGen.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].applicationType = "TrafficGen" 2 | **.node[*].appl.debug = false 3 | **.node[*].appl.headerLength = 512bit 4 | **.node[*].appl.burstSize = 1 5 | **.node[*].appl.packetTime = (600/15000) * 1s #should be the maximum paket size divided by minimum bitrate 6 | **.node[*].appl.packetsPerPacketTime = 1/5 -------------------------------------------------------------------------------- /src/modules/mac/AlohaMacLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.mac; 2 | 3 | 4 | 5 | simple AlohaMacLayer extends UWBIRMac 6 | { 7 | parameters: 8 | double maxRetries; 9 | int minBE = default(3); // min backoff exponent 10 | int maxBE = default(8); // max backoff exponent 11 | @class(AlohaMacLayer); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/CSMANic.ned.ftl: -------------------------------------------------------------------------------- 1 | <#if protocolName=="CSMA using old CSMAMacLayer"> 2 | <#if nedPackageName!="">package ${nedPackageName}; 3 | 4 | import org.mixim.modules.nic.WirelessNicBattery; 5 | 6 | module CSMANic extends WirelessNicBattery 7 | { 8 | parameters: 9 | macType = "CSMAMacLayer"; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /examples/multiConnectionManager/GSMmodels.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/multiConnectionManager/ISMmodels.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/modules/node/HostBMAC.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.node; 2 | 3 | // 4 | // Example host module using a BMAC Network interface card. 5 | // 6 | module HostBMAC extends WirelessNodeBattery 7 | { 8 | parameters: 9 | arpType = default("org.mixim.modules.netw.ArpHost"); 10 | nicType = default("org.mixim.modules.nic.NicBMAC"); 11 | } 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/cm1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/cm2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/cm3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/cm5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/cm6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/cm7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/modules/messages/WiseRoutePkt.msg: -------------------------------------------------------------------------------- 1 | 2 | 3 | cplusplus {{ 4 | #include "NetwPkt_m.h" 5 | }} 6 | 7 | class NetwPkt; 8 | class LAddress::L3Type extends void; 9 | 10 | message WiseRoutePkt extends NetwPkt 11 | { 12 | int isFlood; 13 | LAddress::L3Type finalDestAddr; 14 | LAddress::L3Type initialSrcAddr; 15 | int nbHops; 16 | } 17 | -------------------------------------------------------------------------------- /src/base/modules/BaseArp.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.base.modules; 2 | 3 | moduleinterface IBaseArp { 4 | } 5 | 6 | // Module which is responsible for Addressresolution 7 | simple BaseArp like IBaseArp 8 | { 9 | parameters: 10 | bool notAffectedByHostState = default(true); 11 | bool coreDebug = default(false); // debug switch for the core framework 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/modules/application/BurstApplLayerBattery.ned: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // Application layer extending the BurstApplLayer with power 4 | // consumption support. 5 | // 6 | // @see BurstApplLayer 7 | // 8 | package org.mixim.modules.application; 9 | 10 | simple BurstApplLayerBattery extends BurstApplLayer 11 | { 12 | parameters: 13 | @class(BurstApplLayerBattery); 14 | } 15 | -------------------------------------------------------------------------------- /src/modules/node/HostLMAC.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.node; 2 | 3 | // 4 | // Example host module using a LMAC Network interface card. 5 | // 6 | module HostLMAC extends WirelessNodeBattery 7 | { 8 | parameters: 9 | nicType = default("org.mixim.modules.nic.NicLMAC"); 10 | arpType = default("org.mixim.modules.netw.ArpHost"); 11 | @display("i2=status/battery"); 12 | } 13 | -------------------------------------------------------------------------------- /tests/nicTest/TestHost.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.nicTest; 2 | 3 | import org.mixim.modules.node.WirelessNodeNetwl; 4 | 5 | module TestHost extends WirelessNodeNetwl 6 | { 7 | parameters: 8 | networkType = "org.mixim.tests.nicTest.TestApp"; 9 | arpType = "ArpHost"; 10 | @display("bgb=180,200,white,,;bgp=10,10"); 11 | 12 | connections allowunconnected: 13 | } 14 | -------------------------------------------------------------------------------- /src/modules/phy/PhyLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.phy; 2 | 3 | import org.mixim.base.phyLayer.BasePhyLayer; 4 | 5 | // Physical layer module which knows how to initialize the Deciders 6 | // and AnalogueModels from the modules directory. 7 | // See the classes documentation for details. 8 | simple PhyLayer extends BasePhyLayer 9 | { 10 | parameters: 11 | @class(PhyLayer); 12 | } 13 | -------------------------------------------------------------------------------- /examples/analogueModels/PhyMacHost.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.analogueModels; 2 | 3 | import org.mixim.modules.node.WirelessNode; 4 | 5 | module PhyMacHost extends WirelessNode 6 | { 7 | parameters: 8 | @display("bgb=,,white,,;bgp=10,10"); 9 | nicType = "org.mixim.examples.analogueModels.PhyMacNic"; 10 | int numHosts; // total number of hosts in the network 11 | } 12 | 13 | -------------------------------------------------------------------------------- /examples/CSMAMac/SimpleNetwLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.CSMAMac; 2 | 3 | import org.mixim.base.modules.BaseNetwLayer; 4 | 5 | simple SimpleNetwLayer extends BaseNetwLayer 6 | { 7 | parameters: 8 | @class(SimpleNetwLayer); 9 | 10 | headerLength = 12 bit; 11 | double ip; 12 | bool isSwitch; 13 | double maxTtl; 14 | double boredTime; 15 | } 16 | -------------------------------------------------------------------------------- /templates/analogueModel/BaseNode.ned.ftl: -------------------------------------------------------------------------------- 1 | <#if wizardType!="simplemodule"> 2 | <@setoutput path="${amName}TestNode.ned" /> 3 | ${bannerComment} 4 | 5 | <#if nedPackageName!="">package ${nedPackageName}; 6 | 7 | import org.mixim.modules.node.WirelessNode; 8 | 9 | module ${amName}TestNode extends WirelessNode 10 | { 11 | parameters: 12 | nicType = "${nedPackageName}.${amName}TestNic"; 13 | } 14 | 15 | -------------------------------------------------------------------------------- /tests/testUtils/TestManager.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.testUtils; 2 | 3 | import org.mixim.tests.TestObject; 4 | 5 | //Database module for TestModules. This module has to be present 6 | //in you simulation as a global module if you wan't to use the class 7 | //TestModule 8 | simple TestManager extends TestObject 9 | { 10 | parameters: 11 | @class(TestManager); 12 | @display("i=block/segm"); 13 | } 14 | -------------------------------------------------------------------------------- /src/modules/messages/LMacPkt.msg: -------------------------------------------------------------------------------- 1 | // A LMAC packet format definition 2 | // 3 | // @author Anna Foerster 4 | 5 | 6 | cplusplus {{ 7 | #include "MiXiMMacPkt.h" 8 | }} 9 | 10 | class MacPkt; 11 | class LAddress::L2Type extends void; 12 | 13 | message LMacPkt extends MacPkt 14 | { 15 | int mySlot; // the node's current slot number 16 | LAddress::L2Type occupiedSlots[]; // currently known occupied slots 17 | } 18 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/noshadow/cm5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/noshadow/cm7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/noshadow/cm1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/noshadow/cm2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/noshadow/cm3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/noshadow/cm6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/shadow/cm1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/shadow/cm2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/shadow/cm3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/shadow/cm5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/shadow/cm6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/shadow/cm7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /templates/analogueModel/BaseNic.ned.ftl: -------------------------------------------------------------------------------- 1 | <#if wizardType!="simplemodule"> 2 | <@setoutput path="${amName}TestNic.ned" /> 3 | ${bannerComment} 4 | 5 | <#if nedPackageName!="">package ${nedPackageName}; 6 | 7 | import org.mixim.modules.nic.WirelessNic; 8 | 9 | module ${amName}TestNic extends WirelessNic 10 | { 11 | parameters: 12 | @display("i=block/ifcard"); 13 | phyType = "${nedPackageName}.${phyName}"; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/Host802154.ned.ftl: -------------------------------------------------------------------------------- 1 | <#if protocolName=="CSMA 802.15.4"> 2 | <#if nedPackageName!="">package ${nedPackageName}; 3 | 4 | import org.mixim.modules.node.WirelessNodeBatteryPlusTran; 5 | 6 | module Host802154 extends WirelessNodeBatteryPlusTran 7 | { 8 | parameters: 9 | arpType = "ArpHost"; 10 | nicType = "Nic802154_TI_CC2420"; 11 | transportType = "Aggregation"; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /examples/CSMAMac/PhyMacHost.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.CSMAMac; 2 | 3 | import org.mixim.modules.node.WirelessNodeNetwl; 4 | 5 | module PhyMacHost extends WirelessNodeNetwl 6 | { 7 | parameters: 8 | networkType = "org.mixim.examples.CSMAMac.SimpleNetwLayer"; 9 | nicType = "org.mixim.examples.CSMAMac.PhyMacNic"; 10 | int numHosts; // total number of hosts in the network 11 | connections allowunconnected: 12 | } 13 | 14 | -------------------------------------------------------------------------------- /tests/basePhyLayer/TestHost.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.basePhyLayer; 2 | 3 | import org.mixim.modules.node.WirelessNodeNetwl; 4 | 5 | module TestHost extends WirelessNodeNetwl 6 | { 7 | parameters: 8 | nicType = "org.mixim.tests.basePhyLayer.TestNic"; 9 | 10 | netwl.headerLength = 12bit; 11 | 12 | int numHosts; // total number of hosts in the network 13 | 14 | connections allowunconnected: 15 | } 16 | 17 | -------------------------------------------------------------------------------- /examples/baseNetwork/README: -------------------------------------------------------------------------------- 1 | This example shows the basic structure of a network using MiXiM. 2 | 3 | The network consists of three hosts which use the CSMAMacLayer as MAC layer, 4 | "SimplePathlossModel" as only AnalogueModel and a SNRThresholdDecider as 5 | Decider. 6 | 7 | The used Network- and Application layer can be defined in the omnetpp.ini. By 8 | default the BaseNetwLayer and BurstApplLayer are used. 9 | 10 | You can use this network as a template for your own simulation. -------------------------------------------------------------------------------- /templates/analogueModel/OwnPhyLayer.cc.ftl: -------------------------------------------------------------------------------- 1 | <@setoutput path="${phyName}.cc" /> 2 | ${bannerComment} 3 | 4 | #include "${phyName}.h" 5 | #include "${amName}.h" 6 | 7 | Define_Module(${phyName}); 8 | 9 | AnalogueModel* ${phyName}::getAnalogueModelFromName(const std::string& name, ParameterMap& params) const { 10 | 11 | if (name == "${amName}") { 12 | return createAnalogueModel<${amName}>(params); 13 | } 14 | return PhyLayer::getAnalogueModelFromName(name, params); 15 | } 16 | -------------------------------------------------------------------------------- /examples-inet/run_mixim-inet: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | DIR=`dirname $0` 3 | DIR=`(cd $DIR ; pwd)`/../src 4 | INET_DIR=`(cd $DIR/../../inet/src ; pwd)` 5 | COMMAND_LINE_OPTIONS="-l $INET_DIR/inet -n $DIR/../examples-inet:$DIR/base:$DIR/modules:$INET_DIR" 6 | 7 | if [ -z "`grep KINET_PROJ $DIR/Makefile`" ]; then 8 | echo "This example requires that MiXiM is configured to use the INET Framework." 9 | echo "See examples-inet/README for details." 10 | else 11 | $DIR/run_mixim $* 12 | fi 13 | 14 | -------------------------------------------------------------------------------- /examples/ieee802154a/receivers/3dB-trace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ieee802154a/receivers/3dB.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/base/modules/BaseNetwLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.base.modules; 2 | 3 | // Base module for every network layer module 4 | simple BaseNetwLayer extends BaseLayer like IBaseNetwLayer 5 | { 6 | parameters: 7 | @class(BaseNetwLayer); 8 | 9 | bool coreDebug = default(false); // debug switch for core framework 10 | bool stats = default(false); // stats switch 11 | int headerLength @unit(bit); // length of the network packet header (in bits) 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/modules/connectionManager/UnitDisk.cc: -------------------------------------------------------------------------------- 1 | #include "UnitDisk.h" 2 | 3 | Define_Module(UnitDisk); 4 | 5 | #ifndef udEV 6 | #define udEV (ev.isDisabled()||!coreDebug) ? ev : ev << "UnitDisk: " 7 | #endif 8 | 9 | void UnitDisk::initialize(int stage) 10 | { 11 | ConnectionManager::initialize(stage); 12 | if (stage == 0) 13 | { 14 | radioRange = par("radioRange").doubleValue(); 15 | udEV << "UnitDisk initialised with range " << radioRange << endl; 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /examples/Mac80211/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/modules/messages/AggrPkt.msg: -------------------------------------------------------------------------------- 1 | 2 | // This class is used by the transport layer Aggregation 3 | // to aggregate several packets into one item 4 | // to deliver to the routing layer. 5 | 6 | 7 | cplusplus {{ 8 | #include "ApplPkt_m.h" 9 | typedef ApplPkt* pApplPkt; 10 | }} 11 | 12 | class noncobject pApplPkt; 13 | 14 | message AggrPkt extends cPacket { 15 | @customize(true); 16 | abstract pApplPkt storedPackets[]; //WARNING: omnet++ doesn't want to see pointers here so we declare long instead 17 | }; 18 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/template.properties: -------------------------------------------------------------------------------- 1 | templateName = Basic MiXiM network 2 | templateDescription = Basic MiXiM network 3 | templateCategory = MiXiM 4 | supportedWizardTypes = project, simulation 5 | 6 | # template variables 7 | protocolName = "CSMA Generic" 8 | applName = "Burst Application Layer" 9 | mobilityName = "Static (no mobility)" 10 | netwName = "BaseNetwLayer (No routing)" 11 | dimensions = "2-dimensional" 12 | 13 | # custom wizard pages 14 | page.1.file = protocol.xswt 15 | page.1.title = NIC protocol 16 | -------------------------------------------------------------------------------- /examples/ieee802154Narrow/PhyMacHost.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.ieee802154Narrow; 2 | 3 | import org.mixim.modules.node.WirelessNodeBatteryNetwl; 4 | 5 | module PhyMacHost extends WirelessNodeBatteryNetwl 6 | { 7 | parameters: 8 | networkType = "org.mixim.examples.ieee802154Narrow.NetworkStackTrafficGen"; 9 | nicType = "Nic802154_TI_CC2420"; 10 | arpType = "ArpHost"; 11 | int numHosts; // total number of hosts in the network 12 | 13 | connections allowunconnected: 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/modules/nic/IWirelessNicUpperCtrl.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.nic; 2 | 3 | moduleinterface IWirelessNicUpperCtrl extends inet.linklayer.IWirelessNic 4 | { 5 | parameters: 6 | @display("i=block/ifcard"); 7 | 8 | gates: 9 | //# following gates are not defined in INET 10 | 11 | input upperControlIn; // control gate for incoming control messages from network layer 12 | output upperControlOut; // control gate to send control messages to network layer 13 | } 14 | -------------------------------------------------------------------------------- /src/base/modules/IBaseApplLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.base.modules; 2 | 3 | // Interface for application layer modules 4 | moduleinterface IBaseApplLayer 5 | { 6 | parameters: 7 | int headerLength @unit("bit"); // length of the application message header (in bits) 8 | gates: 9 | input lowerLayerIn; // from network layer 10 | output lowerLayerOut; // to network layer 11 | input lowerControlIn; // control from network layer 12 | output lowerControlOut; // control to network layer 13 | } 14 | 15 | -------------------------------------------------------------------------------- /tests/power/deviceTestAll/README.txt: -------------------------------------------------------------------------------- 1 | DeviceTestAll 2 | ------------- 3 | 4 | Combines deviceTestMulti and deviceTestAll. Uses three instances of 5 | the DeviceDuty and DeviceDutySimple devices, one of which has no 6 | continuous CURRENT draw, only discrete ENERGY draw from the Battery. 7 | 8 | Run each test individually in order. 9 | 10 | ./deviceTest -r $i 11 | 12 | Compare output files with the valid/ directory. 13 | 14 | for f in *.vec *.sca ; do 15 | diff $f valid/$f 16 | done 17 | 18 | DETAILS 19 | 20 | Run 1 - just the one run -------------------------------------------------------------------------------- /src/modules/messages/ProbabilisticBroadcastPkt.msg: -------------------------------------------------------------------------------- 1 | 2 | 3 | cplusplus {{ 4 | #include "NetwPkt_m.h" 5 | }} 6 | 7 | class NetwPkt; 8 | class LAddress::L3Type extends void; 9 | 10 | message ProbabilisticBroadcastPkt extends NetwPkt 11 | { 12 | long id; // Unique message ID ~ f(node address, unique number in node scope). 13 | simtime_t appTtl; // Message time-to-live set by application. 14 | LAddress::L3Type initialSrcAddr; 15 | LAddress::L3Type finalDestAddr; 16 | int nbHops; 17 | } 18 | -------------------------------------------------------------------------------- /examples-inet/hybrid/hybridRouter.route: -------------------------------------------------------------------------------- 1 | ifconfig: 2 | 3 | # NICs of router 4 | name: wlan0 inet_addr: 145.236.0.1 5 | name: wlan1 inet_addr: 145.236.0.1 6 | name: wlan2 inet_addr: 145.236.0.1 7 | name: eth0 inet_addr: 145.236.0.1 8 | 9 | ifconfigend. 10 | 11 | 12 | route: 13 | default: * 0.0.0.0 H 0 wlan0 14 | 145.236.0.2 * 255.255.255.255 H 0 eth0 15 | 145.236.0.3 * 255.255.255.255 H 0 wlan0 16 | 145.236.0.4 * 255.255.255.255 H 0 wlan1 17 | 145.236.0.5 * 255.255.255.255 H 0 wlan2 18 | routeend. -------------------------------------------------------------------------------- /examples-inet/hybrid/Nic802154_TI_CC2420_Decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/Mac80211/README: -------------------------------------------------------------------------------- 1 | This example shows how to use MiXiMs 802.11 protocol implementation. 2 | 3 | The network consists of ten hosts broadcasting bursts of three packets 4 | to the other hosts. When a broadcast is received a reply is sent back 5 | to the sender. 6 | 7 | The hosts use "Mac80211" as MAC layer and their phy layer uses 8 | "SimplePathlossModel" as AnalogueModel and "Decider80211" as Decider. 9 | Note that Mac80211 and Decider80211 are always meant to be used 10 | together. 11 | 12 | The default configuration in omnetpp.ini uses no propagation delay. -------------------------------------------------------------------------------- /examples/WSNRouting/Nic802154_TI_CC2420_Decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/modules/phy/PhyLayerBattery.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.phy; 2 | 3 | // 4 | // Extends PhyLayer module with power consumption support 5 | // 6 | simple PhyLayerBattery extends PhyLayer 7 | { 8 | parameters: 9 | @class(PhyLayerBattery); 10 | 11 | // the number of different power consuming activities the phy layer has 12 | // change this parameter if your decider or physical layer uses more 13 | // than the default 5 activities (sleep, rx, tx, switching, decoding) 14 | int numActivities = default(5); 15 | } 16 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/WiseRoute.ini.fti: -------------------------------------------------------------------------------- 1 | **.node[*].networkType = "WiseRoute" 2 | **.node[*].netwl.trace = true 3 | **.node[*].netwl.stats = true 4 | **.node[*].netwl.useSimTracer = false 5 | **.node[*].netwl.headerLength = 24 bit 6 | **.node[*].netwl.sinkAddress = 0 7 | # RSSI threshold for route selection 8 | **.node[*].netwl.rssiThreshold = -50 dBm 9 | # If set to zero, this node does not initiates route tree building. 10 | # If set to a value larger than zero, this nodes periodically initiates route tree building. 11 | **.node[*].netwl.routeFloodsInterval = 100 s -------------------------------------------------------------------------------- /tests/power/deviceTestAccts/README.txt: -------------------------------------------------------------------------------- 1 | DeviceTestAccts 2 | --------------- 3 | 4 | Similar to deviceTest, but uses the two-phase DutyCycle device, which 5 | assigns each of the two ON periods to a different activity. Both 6 | wakeups are assigned to a third activity. 7 | 8 | Run each test individually in order. 9 | 10 | ./deviceTest -r $i 11 | 12 | Compare output files with the valid/ directory. 13 | 14 | for f in *.vec *.sca ; do 15 | diff $f valid/$f 16 | done 17 | 18 | 19 | DETAILS 20 | 21 | Run 1 - sim-time < lifetime 22 | 23 | Run 2 - sim-time > lifetime -------------------------------------------------------------------------------- /examples/ieee802154Narrow/Nic802154_TI_CC2420_Decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/base/phyLayer/Decider.cc: -------------------------------------------------------------------------------- 1 | #include "Decider.h" 2 | 3 | const_simtime_t Decider::notAgain(-1); 4 | 5 | bool DeciderResult::isSignalCorrect() const { 6 | return isCorrect; 7 | } 8 | 9 | Decider::Decider(DeciderToPhyInterface* phy): 10 | phy(phy) 11 | {} 12 | 13 | simtime_t Decider::processSignal(airframe_ptr_t /*s*/) 14 | { 15 | return notAgain; 16 | } 17 | 18 | ChannelState Decider::getChannelState() const { 19 | return ChannelState(); 20 | } 21 | 22 | simtime_t Decider::handleChannelSenseRequest(ChannelSenseRequest* /*request*/) { 23 | return notAgain; 24 | } 25 | -------------------------------------------------------------------------------- /src/modules/nic/Nic802154_TI_CC2420_Decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/ieee802154a/receivers/3dBseg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/ieee802154a/receivers/3dBAlwaysSync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/ieee802154a/receivers/3dBsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/ieee802154a/receivers/3dBsegDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/modules/netw/ArpHost.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.netw; 2 | 3 | import org.mixim.base.modules.BaseArp; 4 | 5 | // Uses host index as network and MAC address. 6 | // 7 | // It assumes that hosts are declared as an array of NED modules, 8 | // and returns for both the level 2 and level 3 addresses, the 9 | // index of the current host in this array. 10 | simple ArpHost extends BaseArp 11 | { 12 | parameters: 13 | @class(ArpHost); 14 | bool debug = default(false); // enable debugging for this module 15 | int offset = default(0); // Adds an offset to node addresses 16 | } 17 | 18 | -------------------------------------------------------------------------------- /src/modules/nic/NicLMac.ned: -------------------------------------------------------------------------------- 1 | // 2 | // LMAC for MF 2.02, omnetpp 3.4 3 | // 4 | // Created by Anna Foerster on 10/10/08. 5 | // Copyright 2008 Universita della Svizzera Italiana. All rights reserved. 6 | // 7 | // Coverted to OMNeT++ 4 by Rudolf Hornig 8 | // 9 | // Converted to MiXiM by Kapourniotis Theodoros 10 | // 11 | // 12 | 13 | package org.mixim.modules.nic; 14 | 15 | // 16 | // This module implements a LMAC network interface card using 17 | // the "LMacLayer" MAC layer module 18 | // 19 | module NicLMAC extends WirelessNicBattery 20 | { 21 | parameters: 22 | macType = "LMacLayer"; 23 | } 24 | -------------------------------------------------------------------------------- /src/modules/nic/Nic802154_TI_CC1100_Decider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples-inet/adhoc/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/basePhyLayer/Network.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.basePhyLayer; 2 | 3 | import org.mixim.tests.ExtTestNetwork; 4 | 5 | // Test network for PHY implementation tests. 6 | network tbpSim extends ExtTestNetwork 7 | { 8 | parameters: 9 | int run; // total number of hosts in the network 10 | bool showPassed; 11 | submodules: 12 | testManager: BasePhyTests { 13 | @display("p=54,97"); 14 | } 15 | node[numHosts]: TestHost { 16 | parameters: 17 | numHosts = numHosts; 18 | @display("p=149,96;i=laptop"); 19 | 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /examples-inet/bulktransfer/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/Nic802154_TI_CC2420_Decider.xml.ftl: -------------------------------------------------------------------------------- 1 | <#if protocolName=="CSMA 802.15.4"> 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples-inet/hybrid/config80211.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/base/utils/winsupport.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file winsupport.h 3 | * @brief Support for Win32 architectures. 4 | * @author Hermann S. Lichte 5 | * @date 2007-08-14 6 | **/ 7 | 8 | #ifndef __WINSUPPORT_H 9 | #define __WINSUPPORT_H 10 | 11 | #ifdef _WIN32 12 | 13 | #include 14 | 15 | #define __const const 16 | 17 | typedef unsigned int uint32_t; 18 | typedef unsigned short uint16_t; 19 | typedef unsigned char uint8_t; 20 | 21 | #define snprintf _snprintf 22 | #define asprintf _asprintf 23 | 24 | int _asprintf(char**, const char*, ...); 25 | 26 | #endif /* _WIN32 */ 27 | 28 | #endif /* __WINSUPPORT_H */ 29 | -------------------------------------------------------------------------------- /templates/analogueModel/OwnPhyLayer.h.ftl: -------------------------------------------------------------------------------- 1 | <@setoutput path="${phyName}.h" /> 2 | ${bannerComment} 3 | 4 | #ifndef ${(phyName?upper_case)}_H_ 5 | #define ${(phyName?upper_case)}_H_ 6 | 7 | #include 8 | 9 | class ${phyName} : public PhyLayer { 10 | public: 11 | /** 12 | * @brief Creates and returns an instance of the AnalogueModel with the 13 | * specified name. 14 | * 15 | * Is able to initialize the following AnalogueModels: 16 | * - ${amName} 17 | */ 18 | virtual AnalogueModel* getAnalogueModelFromName(const std::string& name, ParameterMap& params) const; 19 | 20 | }; 21 | 22 | #endif /* ${(phyName?upper_case)}_H_ */ 23 | -------------------------------------------------------------------------------- /tests/connectionManager/TestNic.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.tests.connectionManager; 2 | 3 | module TestNic 4 | { 5 | parameters: 6 | string connectionManagerName; //name of the ConnectionManager module 7 | string phyLayerType; //type of the physical layer 8 | @display("bgb=101,180,white,,;bgp=10,10"); 9 | gates: 10 | input radioIn; // radioIn gate for sendDirect 11 | submodules: 12 | phy: like ITestPhyLayer { 13 | parameters: 14 | @display("p=60,150;i=prot3"); 15 | } 16 | connections: 17 | 18 | radioIn --> phy.radioIn; 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /templates/analogueModel/config-template.xml.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | <#if par1Name!=""> 8 | 9 | "false"<#else>"0"/> 10 | 11 | 12 | <#if par2Name!=""> 13 | 14 | "false"<#else>"0"/> 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/testUtils/asserts.cc: -------------------------------------------------------------------------------- 1 | #include "asserts.h" 2 | 3 | bool haltOnFails = false; 4 | bool displayPassed = true; 5 | 6 | void fail(std::string msg) { 7 | std::cout << "FAILED: " << msg << std::endl; 8 | if(haltOnFails) 9 | exit(1); 10 | } 11 | 12 | void pass(std::string msg, bool hidePassed) { 13 | if(!hidePassed && displayPassed) 14 | std::cout << "Passed: " << msg << std::endl; 15 | } 16 | 17 | void assertTrue(std::string msg, bool value, bool hidePassed) { 18 | if (!value) { 19 | fail(msg); 20 | } else { 21 | pass(msg, hidePassed); 22 | } 23 | } 24 | 25 | void assertFalse(std::string msg, bool value) { assertTrue(msg, !value); } 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /examples-inet/bulktransfer/README: -------------------------------------------------------------------------------- 1 | This network is based on INET's "inet/bulktransfer" example. 2 | It is used to show a simple INET network with a host exchanging data over TCP 3 | using a MiXiM 802.11 network interface card. 4 | 5 | IP addresses and default routes are set up automatically, using 6 | FlatNetworkConfigurator. Note: FlatNetworkConfigurator does only work with MiXiM 7 | wireless NICs if default routes for every host are sufficient. This means hosts 8 | may not have more than one NIC and no routing is necessary. 9 | 10 | The network consists of three clients and one server. All three clients exchange 11 | data with the server. 12 | The application models bulk file transfer. 13 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/ghassemzadeh-los.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/ghassemzadeh-nlos.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/shadow/ghassemzadeh-los.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/base/modules/BaseMacLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.base.modules; 2 | 3 | // Base module for every mac layer module 4 | simple BaseMacLayer extends BaseLayer like IWirelessMac 5 | { 6 | parameters: 7 | @class(BaseMacLayer); 8 | bool coreDebug = default(false); // debug switch 9 | int headerLength @unit(bit); // length of the MAC packet header (in bits) 10 | string address = default("auto"); // MAC address as hex string (12 hex digits), or 11 | // "auto". "auto" values will be replaced by 12 | // a generated MAC address in init stage 1. 13 | } 14 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/noshadow/ghassemzadeh-los.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/shadow/ghassemzadeh-nlos.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_5.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Five-0-20100408-14:34:12-4259 3 | attr configname Five 4 | attr datetime 20100408-14:34:12 5 | attr experiment Five 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4259 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 3 0.2 10020 22 | 1 14 1 9540 23 | 1 16 1.2 8940 24 | 1 27 2 8460 25 | 1 29 2.2 7860 26 | 1 40 3 7380 27 | 1 42 3.2 6780 28 | 1 53 4 6300 29 | 1 55 4.2 5700 30 | -------------------------------------------------------------------------------- /examples/ieee802154a/channels/noshadow/ghassemzadeh-nlos.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /doc/interfaces/Obstacles/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \usepackage[latin1]{inputenc} 4 | \usepackage[american]{babel} 5 | \usepackage[pdftex]{graphicx} 6 | \DeclareGraphicsExtensions{.pdf,.png} 7 | \graphicspath{{./src/}} 8 | 9 | \newcommand{\code}[1]{\textsf{#1}} 10 | \newcommand{\scalefactor}{0.5} 11 | 12 | % easy references 13 | \newcommand{\fref}[1]{Fig.~\ref{#1}} 14 | \newcommand{\sref}[1]{Section~\ref{#1}} 15 | \newcommand{\tref}[1]{Tab.~\ref{#1}} 16 | \newcommand{\eref}[1]{Eq.~\ref{#1}} 17 | \newcommand{\lref}[1]{Listing~\ref{#1}} 18 | 19 | \begin{document} 20 | 21 | \input{obstacles} 22 | 23 | \end{document} 24 | 25 | %%% Local Variables: 26 | %%% mode: latex 27 | %%% TeX-master: t 28 | %%% End: 29 | -------------------------------------------------------------------------------- /templates/analogueModel/BaseNetwork.ned.ftl: -------------------------------------------------------------------------------- 1 | <#if wizardType!="simplemodule"> 2 | <@setoutput path="${amName}TestNetwork.ned" /> 3 | ${bannerComment} 4 | 5 | <#if nedPackageName!="">package ${nedPackageName}; 6 | 7 | import org.mixim.base.modules.BaseNetwork; 8 | 9 | network ${amName}TestNetwork extends BaseNetwork 10 | { 11 | parameters: 12 | int numNodes; // total number of hosts in the network 13 | 14 | submodules: 15 | node[numNodes]: ${amName}TestNode { 16 | parameters: 17 | @display("p=170,50;i=device/wifilaptop"); 18 | } 19 | connections allowunconnected: 20 | // all connections and gates are to be generated dynamically 21 | } 22 | 23 | -------------------------------------------------------------------------------- /templates/analogueModel/template.properties: -------------------------------------------------------------------------------- 1 | templateName = AnalogueModel test network 2 | templateDescription = Generates a network to implement and test your own AnalogueModel in. 3 | templateCategory = MiXiM 4 | supportedWizardTypes = project, simulation, simplemodule 5 | 6 | # template variables 7 | amName = ${targetTypeName} 8 | phyName = ${targetTypeName}Phy 9 | par1Name = "par1" 10 | par1Type = "double" 11 | par1CType = <#if par1Type=="string">const char*<#else>${par1Type} 12 | par2Name = "" 13 | par2Type = "double" 14 | par2CType = <#if par2Type=="string">const char*<#else>${par2Type} 15 | 16 | # custom wizard pages 17 | 18 | page.1.file = parameters.xswt 19 | page.1.title = AnalogueModel parameters 20 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_6.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Six-0-20100408-14:34:13-4260 3 | attr configname Six 4 | attr datetime 20100408-14:34:13 5 | attr experiment Six 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4260 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 4 0.15 10170 22 | 1 22 1 9540 23 | 1 24 1 9540 24 | 1 28 1.2 8940 25 | 1 47 2 8460 26 | 1 51 2.2 7860 27 | 1 70 3 7380 28 | 1 74 3.2 6780 29 | 1 93 4 6300 30 | 1 97 4.2 5700 31 | -------------------------------------------------------------------------------- /tests/power/deviceTestMulti/README.txt: -------------------------------------------------------------------------------- 1 | DeviceTestMulti 2 | --------------- 3 | 4 | Similar to deviceTest, but the Host now has two DutyCycleSimple devices, 5 | each with different parameters. 6 | 7 | Run each test individually in order. 8 | 9 | ./deviceTest -r $i 10 | 11 | Compare output files with the valid/ directory. 12 | 13 | for f in *.vec *.sca ; do 14 | diff $f valid/$f 15 | done 16 | 17 | 18 | DETAILS 19 | 20 | The 2nd device has period half of the 1st device. 21 | 22 | Run 1 - 1st and 2nd devices turn on at the same time, battery fails 23 | 24 | Run 2 - 2nd device turns off while 1st device is on 25 | 26 | Run 3 - 1st device turns off while 2nd device is off, battery fails 27 | 28 | Run 4 - 2nd device turns on while first device is off 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/base/modules/IBaseNetwLayer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.base.modules; 2 | 3 | // Interface for network layer modules 4 | moduleinterface IBaseNetwLayer 5 | { 6 | parameters: 7 | bool stats; // stats switch 8 | int headerLength @unit("bit"); // length of the network packet header (in bits) 9 | gates: 10 | input upperLayerIn; // from application layer 11 | output upperLayerOut; // to application layer 12 | input upperControlIn; // control from application layer 13 | output upperControlOut; // control to application layer 14 | input lowerLayerIn; // from NIC 15 | output lowerLayerOut; // to NIC 16 | input lowerControlIn; // control from NIC 17 | output lowerControlOut; // control to NIC 18 | } 19 | 20 | -------------------------------------------------------------------------------- /examples/analogueModels/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/power/deviceTestAccts/valid/omnetpp_1.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run One-0-20100408-14:34:16-4277 3 | attr configname One 4 | attr datetime 20100408-14:34:16 5 | attr experiment One 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4277 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 9 0.6 10080 22 | 1 11 0.8 9480 23 | 1 16 1 9120 24 | 1 24 1.6 8460 25 | 1 26 1.8 7860 26 | 1 31 2 7500 27 | 1 39 2.6 6840 28 | 1 41 2.8 6240 29 | 1 46 3 5880 30 | 1 54 3.6 5220 31 | 1 56 3.8 4620 32 | 1 61 4 4260 33 | 1 69 4.6 3600 34 | 1 71 4.8 3000 35 | -------------------------------------------------------------------------------- /examples/ieee802154Narrow/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_9.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Nine-0-20100408-14:34:13-4263 3 | attr configname Nine 4 | attr datetime 20100408-14:34:13 5 | attr experiment Nine 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4263 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 3 0.2 10020 22 | 1 14 1.1 9240 23 | 1 16 1.3 8640 24 | 1 27 2.2 7860 25 | 1 38 3.1 7080 26 | 1 40 3.3 6480 27 | 1 51 4.2 5700 28 | 1 62 5.1 4920 29 | 1 64 5.3 4320 30 | 1 75 6.2 3540 31 | 1 86 7.1 2760 32 | 1 88 7.3 2160 33 | 1 99 8.2 1380 34 | 1 110 9.1 600 35 | 1 112 9.3 0 36 | -------------------------------------------------------------------------------- /examples-inet/hybrid/RouterWithBattery.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.inet.hybrid; 2 | 3 | import inet.nodes.inet.Router; 4 | import org.mixim.modules.power.battery.BatteryStats; 5 | import org.mixim.modules.power.battery.SimpleBattery; 6 | 7 | 8 | // Router equipped with all types of NICs existent in the network's hosts, 9 | // able to route packages between all of the hosts. 10 | // 11 | // It consists of an INET network-layer, MiXiM NICs 12 | // TODO: factor out battery 13 | module RouterWithBattery extends Router 14 | { 15 | parameters: 16 | @display("i=device/wifilaptop;bgb=392,418"); 17 | submodules: 18 | batteryStats: BatteryStats { 19 | @display("p=242,49;i=block/circle"); 20 | } 21 | battery: SimpleBattery { 22 | @display("p=314,49;i=block/control"); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/base/modules/ArpInterface.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ArpInterface.h 3 | * 4 | * Created on: Sep 9, 2010 5 | * Author: Karl Wessel 6 | */ 7 | 8 | #ifndef ARPINTERFACE_H_ 9 | #define ARPINTERFACE_H_ 10 | 11 | #include "MiXiMDefs.h" 12 | #include "SimpleAddress.h" 13 | 14 | /** 15 | * @brief Interface every Address resolution protocol (ARP) module has to 16 | * implement. 17 | * 18 | * Declares only one method that resolves a L3 address into a L2 address. 19 | * 20 | * @ingroup netwLayer 21 | * @ingroup baseModules 22 | * 23 | * @author Karl Wessel 24 | */ 25 | class MIXIM_API ArpInterface { 26 | public: 27 | virtual ~ArpInterface() {} 28 | /** @brief returns a L2 address to a given L3 address.*/ 29 | virtual LAddress::L2Type getMacAddr(const LAddress::L3Type& netwAddr) const = 0; 30 | }; 31 | 32 | #endif /* ARPINTERFACE_H_ */ 33 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/Host.ned: -------------------------------------------------------------------------------- 1 | //# 2 | //# Energy Framework for Omnet++, version 0.9 3 | //# 4 | //# Author: Laura Marie Feeney 5 | //# 6 | //# Copyright 2009 Swedish Institute of Computer Science. 7 | //# 8 | //# This software is provided `as is' and without any express or implied 9 | //# warranties, including, but not limited to, the implied warranties of 10 | //# merchantability and fitness for a particular purpose. 11 | //###################################################################### 12 | // Tests the Nic80211Battery, the Energy Framework's battery aware 13 | // 802.11 module 14 | package org.mixim.tests.power.Nic80211Test; 15 | 16 | import org.mixim.modules.node.WirelessNodeBattery; 17 | 18 | module Nic80211TestHost extends WirelessNodeBattery 19 | { 20 | parameters: 21 | nicType = "org.mixim.modules.nic.Nic80211Battery"; 22 | } 23 | -------------------------------------------------------------------------------- /tests/power/deviceTestMulti/valid/omnetpp_4.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Four-0-20100408-14:34:15-4274 3 | attr configname Four 4 | attr datetime 20100408-14:34:15 5 | attr experiment Four 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4274 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 3 0.1 10125 22 | 1 6 0.3 9450 23 | 1 19 1 8955 24 | 1 21 1.15 8280 25 | 1 28 1.6 7635 26 | 1 36 2 7335 27 | 1 38 2.15 6660 28 | 1 45 2.6 6015 29 | 1 53 3 5715 30 | 1 55 3.15 5040 31 | 1 62 3.6 4395 32 | 1 70 4 4095 33 | 1 72 4.15 3420 34 | 1 79 4.6 2775 35 | 1 87 5 2475 36 | 1 89 5.15 1800 37 | 1 96 5.6 1155 38 | -------------------------------------------------------------------------------- /examples-inet/adhoc/Adhoc.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.inet.adhoc; 2 | 3 | 4 | import inet.networklayer.autorouting.ipv4.FlatNetworkConfigurator; 5 | import inet.nodes.inet.WirelessHost; 6 | import org.mixim.base.modules.BaseNetwork; 7 | 8 | 9 | //Network for testing hosts containing an INET network stack and a MiXiM 802.11 NIC. 10 | network Adhoc extends BaseNetwork 11 | { 12 | parameters: 13 | int numHosts; // total number of hosts in the network 14 | @display("bgb=$playgroundSizeX,$playgroundSizeY,white,,;bgp=10,50"); 15 | 16 | submodules: 17 | host[numHosts]: WirelessHost { 18 | parameters: 19 | @display("r=,,#707070"); 20 | } 21 | configurator: FlatNetworkConfigurator { 22 | parameters: 23 | @display("p=108,0;i=block/cogwheel;is=s"); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /examples/baseNetwork/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/power/PowerTestNetwork.ned: -------------------------------------------------------------------------------- 1 | // Energy Framework for Omnet++, version 0.9 2 | // 3 | // Author: Laura Marie Feeney 4 | // 5 | // Copyright 2009 Swedish Institute of Computer Science. 6 | // 7 | // This software is provided `as is' and without any express or implied 8 | // warranties, including, but not limited to, the implied warranties of 9 | // merchantability and fitness for a particular purpose. 10 | // 11 | //********************************************************************* 12 | package org.mixim.tests.power; 13 | 14 | import org.mixim.tests.BaseTestNetwork; 15 | 16 | // Base test network for power (battery) tests. 17 | network PowerTestNetwork extends BaseTestNetwork 18 | { 19 | parameters: 20 | double playgroundSizeX; 21 | double playgroundSizeY; 22 | int numHosts; 23 | 24 | connections allowunconnected: 25 | } 26 | -------------------------------------------------------------------------------- /tests/power/deviceTestMulti/valid/omnetpp_2.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Two-0-20100408-14:34:15-4272 3 | attr configname Two 4 | attr datetime 20100408-14:34:15 5 | attr experiment Two 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4272 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 3 0.075 10125 22 | 1 6 0.3 9450 23 | 1 19 1 8955 24 | 1 22 1.2 8130 25 | 1 28 1.575 7560 26 | 1 36 2 7335 27 | 1 39 2.2 6510 28 | 1 45 2.575 5940 29 | 1 53 3 5715 30 | 1 56 3.2 4890 31 | 1 62 3.575 4320 32 | 1 70 4 4095 33 | 1 73 4.2 3270 34 | 1 79 4.575 2700 35 | 1 87 5 2475 36 | 1 90 5.2 1650 37 | 1 96 5.575 1080 38 | -------------------------------------------------------------------------------- /examples/CSMAMac/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.oppbuildspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /examples-inet/hybrid/README: -------------------------------------------------------------------------------- 1 | Network for testing a hybrid host (hybridRouter) containing different wired 2 | (from INET) and wireless (from MiXiM) NICs. 3 | 4 | This network contains several hosts, each equipped with a different type of 5 | NIC, in particular ethernet, 802.11 and 802.15.4 (TI_CC2420). 6 | 7 | Further the network contains the hybridRouter which is equipped with 8 | all of these types of NICs. Thus the hybridRouter is capable of establishing a 9 | connection to every host in the network as well as route packages between 10 | hosts. 11 | 12 | All hosts which are not the router are equipped with a PING-application. The 13 | several configurations demonstrate the sending of PINGs between the different 14 | hosts, routed by the hybridRouter. 15 | 16 | Note: NICs connected by different ConnectionManagers (here: 802.11 and 17 | 802.15.4) cannot interfere with each other yet. -------------------------------------------------------------------------------- /examples/bmac/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /examples/lmac/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/Thirteen-0.sca: -------------------------------------------------------------------------------- 1 | version 2 2 | run Thirteen-0-20111213-13:19:52-16150 3 | attr configname Thirteen 4 | attr datetime 20111213-13:19:52 5 | attr experiment Thirteen 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network PowerDeviceTestNet 11 | attr processid 16150 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | scalar PowerDeviceTestNet.host[0].subscriber HostState::FAILED 9.3 19 | scalar PowerDeviceTestNet.host[0].batteryStats nominal 10800 20 | attr unit mW-s 21 | scalar PowerDeviceTestNet.host[0].batteryStats total 10800 22 | attr unit mW-s 23 | scalar PowerDeviceTestNet.host[0].batteryStats lifetime 9.3 24 | attr unit s 25 | scalar PowerDeviceTestNet.host[0].batteryStats "Mean power consumption" 720 26 | attr unit mW 27 | -------------------------------------------------------------------------------- /src/inet_stub/mobility/models/MobilityAccess.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2000 Institut fuer Telematik, Universitaet Karlsruhe 3 | // Copyright (C) 2004 Andras Varga 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU Lesser General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU Lesser General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU Lesser General Public License 16 | // along with this program; if not, see . 17 | // 18 | 19 | #include "MobilityAccess.h" 20 | -------------------------------------------------------------------------------- /src/modules/utility/phyPER.ned: -------------------------------------------------------------------------------- 1 | // 2 | // (c) 2009 CSEM SA, Neuchâtel, Switzerland. 3 | // 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see http://www.gnu.org/licenses/. 16 | // 17 | 18 | package org.mixim.modules.utility; 19 | 20 | // 21 | // TODO auto-generated module 22 | // 23 | simple phyPER 24 | { 25 | } 26 | -------------------------------------------------------------------------------- /tests/power/runTests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | BasePath="$( cd $(dirname $0); pwd )" 4 | 5 | echo ' ========== Running power tests ==============' 6 | e='--------------------------------' 7 | for f in deviceTest deviceTestMulti deviceTestAccts deviceTestAll #Nic80211Test 8 | do 9 | if [ -d "${BasePath}/$f" -a -f "${BasePath}/$f/runTests.sh" ]; then 10 | echo " -------------$f${e:${#f}}" 11 | ( cd "${BasePath}/$f" && \ 12 | ./runTests.sh >run.log 2>&1 ) 13 | fi 14 | done 15 | 16 | iErrs=0 17 | echo ' ======== Checking results of tests ==========' 18 | for f in deviceTest deviceTestMulti deviceTestAccts deviceTestAll #Nic80211Test 19 | do 20 | if [ -d "${BasePath}/$f" -a -f "${BasePath}/checkResults.sh" ]; then 21 | echo " -------------$f${e:${#f}}" 22 | ( cd "${BasePath}/$f" && \ 23 | ../checkResults.sh ) 24 | st=$? 25 | [ x$st = x0 ] || iErrs=$(( $iErrs + 1 )) 26 | fi 27 | done 28 | 29 | exit $iErrs 30 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_10.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Ten-0-20100408-14:34:14-4264 3 | attr configname Ten 4 | attr datetime 20100408-14:34:14 5 | attr experiment Ten 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4264 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 6 0.125 10245 22 | 1 42 1 9540 23 | 1 51 1.2 8940 24 | 1 86 2.025 8385 25 | 1 94 2.225 7785 26 | 1 129 3.05 7230 27 | 1 137 3.25 6630 28 | 1 172 4.075 6075 29 | 1 180 4.275 5475 30 | 1 215 5.1 4920 31 | 1 223 5.3 4320 32 | 1 258 6.125 3765 33 | 1 294 7 3060 34 | 1 303 7.2 2460 35 | 1 338 8.025 1905 36 | 1 346 8.225 1305 37 | 1 381 9.05 750 38 | 1 389 9.25 150 39 | 1 391 9.3 0 40 | -------------------------------------------------------------------------------- /tests/power/utils/Subscriber.ned: -------------------------------------------------------------------------------- 1 | //# Energy Framework for Omnet++, version 0.9 2 | //# 3 | //# Author: Laura Marie Feeney 4 | //# 5 | //# Copyright 2009 Swedish Institute of Computer Science. 6 | //# 7 | //# This software is provided `as is' and without any express or implied 8 | //# warranties, including, but not limited to, the implied warranties of 9 | //# merchantability and fitness for a particular purpose. 10 | //# 11 | //###################################################################### 12 | package org.mixim.tests.power.utils; 13 | 14 | import org.mixim.tests.TestObject; 15 | 16 | // test module only (subscribes to and records Host failure notifications) 17 | // 18 | // note that all modules that generate msgs should cancel them in 19 | // response to host failure 20 | simple Subscriber extends TestObject 21 | { 22 | parameters: 23 | @class(Subscriber); 24 | bool debug = default(false); 25 | } 26 | -------------------------------------------------------------------------------- /tests/nicTest/TestApp.ned: -------------------------------------------------------------------------------- 1 | // 2 | // This program is free software: you can redistribute it and/or modify 3 | // it under the terms of the GNU Lesser General Public License as published by 4 | // the Free Software Foundation, either version 3 of the License, or 5 | // (at your option) any later version. 6 | // 7 | // This program is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU Lesser General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU Lesser General Public License 13 | // along with this program. If not, see http://www.gnu.org/licenses/. 14 | // 15 | 16 | package org.mixim.tests.nicTest; 17 | 18 | import org.mixim.base.modules.BaseNetwLayer; 19 | 20 | simple TestApp extends BaseNetwLayer 21 | { 22 | parameters: 23 | @class(TestApp); 24 | } 25 | -------------------------------------------------------------------------------- /tests/nicTest/NicTests.ned: -------------------------------------------------------------------------------- 1 | // 2 | // This program is free software: you can redistribute it and/or modify 3 | // it under the terms of the GNU Lesser General Public License as published by 4 | // the Free Software Foundation, either version 3 of the License, or 5 | // (at your option) any later version. 6 | // 7 | // This program is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU Lesser General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU Lesser General Public License 13 | // along with this program. If not, see http://www.gnu.org/licenses/. 14 | // 15 | 16 | package org.mixim.tests.nicTest; 17 | 18 | import org.mixim.tests.testUtils.TestManager; 19 | 20 | simple NicTests extends TestManager 21 | { 22 | parameters: 23 | @class(NicTests); 24 | } 25 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_3.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Three-0-20100408-14:34:12-4257 3 | attr configname Three 4 | attr datetime 20100408-14:34:12 5 | attr experiment Three 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4257 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 2 0.3 9720 22 | 1 6 1 9540 23 | 1 7 1.3 8640 24 | 1 11 2 8460 25 | 1 12 2.3 7560 26 | 1 16 3 7380 27 | 1 17 3.3 6480 28 | 1 21 4 6300 29 | 1 22 4.3 5400 30 | 1 26 5 5220 31 | 1 27 5.3 4320 32 | 1 31 6 4140 33 | 1 32 6.3 3240 34 | 1 36 7 3060 35 | 1 37 7.3 2160 36 | 1 41 8 1980 37 | 1 42 8.3 1080 38 | 1 46 9 900 39 | 1 47 9.3 0 40 | 1 48 10 0 41 | 1 49 11 0 42 | 1 50 12 0 43 | 1 51 13 0 44 | 1 52 14 0 45 | 1 53 15 0 46 | -------------------------------------------------------------------------------- /src/base/utils/winsupport.cc: -------------------------------------------------------------------------------- 1 | /** 2 | * @file winsupport.cc 3 | * @brief Support for Win32 architectures. 4 | * @author Hermann S. Lichte 5 | * @date 2007-08-14 6 | **/ 7 | 8 | #include "winsupport.h" 9 | 10 | #ifdef _WIN32 11 | 12 | #include 13 | #include 14 | #include 15 | 16 | int _asprintf(char** buf, const char* format, ...) 17 | { 18 | va_list ap; 19 | int len; 20 | int res; 21 | assert(false); // this function is broken and it is not used right now 22 | va_start(ap, format); 23 | /* _vscprintf doesn't count the 24 | * null terminating string so we add 1. */ 25 | //len = _vscprintf_p( format, ap ) + 1; //TODO: fix error on this line when compiled with mingw 26 | *buf = (char*)malloc(len*sizeof(char)); 27 | //res = _vsprintf_p(*buf, len, format, ap); //TODO: fix error on this line when compiled with mingw 28 | va_end(ap); 29 | 30 | return res; 31 | } 32 | #endif 33 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/omnetpp_wifi_lowpow.ini: -------------------------------------------------------------------------------- 1 | # SAMPLE battery consumption parameters for a low-power wi-fi device 2 | 3 | # Marvell 88W8686 low power IEEE 802.11 chipset 4 | # see e.g. http://imote2-linux.wiki.sourceforge.net/UCAM-WSB100 5 | 6 | sim.host[*].nic.sleepCurrent = .85 ; mA 7 | sim.host[*].nic.idleCurrent = 172 ; mA 8 | sim.host[*].nic.rxCurrent = 200 ; mA 9 | sim.host[*].nic.txCurrent = 153 ; mA 10 | 11 | # Marvell 88W8686 spec gives 14dBm max for CCK 12 | # leave at 20dBm from original omnetpp.ini; unclear how to translate 13 | # other parameters (e.g. sensitivity) 14 | # sim.host[*].nic.snrEval.transmitterPower = 25 ; mW 15 | 16 | # G1 Android-phone battery 17 | # note that the G1 actually uses a qualcomm chip, but smartphone is a 18 | # plausible low power wi-fi scenario 19 | 20 | sim.host[*].battery.voltage = 3 ; V 21 | sim.host[*].battery.capacity = 1150 ; mAhr 22 | sim.host[*].battery.nominal = 1150 ; mAhr 23 | 24 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_1.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run One-0-20100408-14:34:12-4255 3 | attr configname One 4 | attr datetime 20100408-14:34:12 5 | attr experiment One 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4255 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 3 0.2 10020 22 | 1 14 1 9540 23 | 1 16 1.2 8940 24 | 1 27 2 8460 25 | 1 29 2.2 7860 26 | 1 40 3 7380 27 | 1 42 3.2 6780 28 | 1 53 4 6300 29 | 1 55 4.2 5700 30 | 1 66 5 5220 31 | 1 68 5.2 4620 32 | 1 79 6 4140 33 | 1 81 6.2 3540 34 | 1 92 7 3060 35 | 1 94 7.2 2460 36 | 1 105 8 1980 37 | 1 107 8.2 1380 38 | 1 118 9 900 39 | 1 120 9.2 300 40 | 1 121 9.3 0 41 | 1 122 10 0 42 | 1 123 11 0 43 | 1 124 12 0 44 | 1 125 13 0 45 | 1 126 14 0 46 | 1 127 15 0 47 | -------------------------------------------------------------------------------- /src/inet_stub/linklayer/IWirelessNic.ned: -------------------------------------------------------------------------------- 1 | // 2 | // This program is free software: you can redistribute it and/or modify 3 | // it under the terms of the GNU Lesser General Public License as published by 4 | // the Free Software Foundation, either version 3 of the License, or 5 | // (at your option) any later version. 6 | // 7 | // This program is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU Lesser General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU Lesser General Public License 13 | // along with this program. If not, see http://www.gnu.org/licenses/. 14 | // 15 | 16 | package inet.linklayer; 17 | 18 | moduleinterface IWirelessNic extends INic 19 | { 20 | parameters: 21 | @display("i=block/ifcard"); 22 | gates: 23 | input radioIn @labels(AirFrame); // to receive AirFrames 24 | } 25 | -------------------------------------------------------------------------------- /tests/power/deviceTestMulti/Network.ned: -------------------------------------------------------------------------------- 1 | // Energy Framework for Omnet++, version 0.9 2 | // 3 | // Author: Laura Marie Feeney 4 | // 5 | // Copyright 2009 Swedish Institute of Computer Science. 6 | // 7 | // This software is provided `as is' and without any express or implied 8 | // warranties, including, but not limited to, the implied warranties of 9 | // merchantability and fitness for a particular purpose. 10 | // 11 | //********************************************************************* 12 | package org.mixim.tests.power.deviceTestMulti; 13 | 14 | import org.mixim.tests.power.PowerTestNetwork; 15 | 16 | // The test host now has two DutyCycleSimple devices, 17 | // each with different parameters. 18 | network PowerDeviceTestMultiNet extends PowerTestNetwork 19 | { 20 | parameters: 21 | 22 | submodules: 23 | host[numHosts]: PowerDuoTestHost { 24 | parameters: 25 | @display("p=50,50;b=30,25,rect"); 26 | } 27 | connections allowunconnected: 28 | } 29 | -------------------------------------------------------------------------------- /src/modules/nic/NicCSMA.ned: -------------------------------------------------------------------------------- 1 | // 2 | // This program is free software: you can redistribute it and/or modify 3 | // it under the terms of the GNU Lesser General Public License as published by 4 | // the Free Software Foundation, either version 3 of the License, or 5 | // (at your option) any later version. 6 | // 7 | // This program is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU Lesser General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU Lesser General Public License 13 | // along with this program. If not, see http://www.gnu.org/licenses/. 14 | // 15 | 16 | package org.mixim.modules.nic; 17 | 18 | // 19 | // This module implements a CSMA network interface card using 20 | // the "csma" MAC layer module 21 | // 22 | module NicCSMA extends WirelessNic 23 | { 24 | parameters: 25 | macType = "csma"; 26 | } 27 | -------------------------------------------------------------------------------- /src/modules/messages/AirFrameUWBIR.msg: -------------------------------------------------------------------------------- 1 | // 2 | // This program is free software: you can redistribute it and/or modify 3 | // it under the terms of the GNU Lesser General Public License as published by 4 | // the Free Software Foundation, either version 3 of the License, or 5 | // (at your option) any later version. 6 | // 7 | // This program is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU Lesser General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU Lesser General Public License 13 | // along with this program. If not, see http://www.gnu.org/licenses/. 14 | // 15 | 16 | cplusplus {{ 17 | #include "IEEE802154A.h" 18 | #include "MiXiMAirFrame.h" 19 | }} 20 | 21 | class noncobject IEEE802154A::config; 22 | class MiximAirFrame; 23 | 24 | message AirFrameUWBIR extends MiximAirFrame { 25 | IEEE802154A::config cfg; 26 | } 27 | -------------------------------------------------------------------------------- /tests/basePhyLayer/BasePhyTests.ned: -------------------------------------------------------------------------------- 1 | // 2 | // This program is free software: you can redistribute it and/or modify 3 | // it under the terms of the GNU Lesser General Public License as published by 4 | // the Free Software Foundation, either version 3 of the License, or 5 | // (at your option) any later version. 6 | // 7 | // This program is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU Lesser General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU Lesser General Public License 13 | // along with this program. If not, see http://www.gnu.org/licenses/. 14 | // 15 | 16 | package org.mixim.tests.basePhyLayer; 17 | 18 | import org.mixim.tests.testUtils.TestManager; 19 | // 20 | // TODO auto-generated module 21 | // 22 | simple BasePhyTests extends TestManager 23 | { 24 | parameters: 25 | @class(BasePhyTests); 26 | } 27 | -------------------------------------------------------------------------------- /src/inet_stub/mobility/models/StationaryMobility.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2006 Andras Varga 3 | // 4 | // This program is free software; you can redistribute it and/or 5 | // modify it under the terms of the GNU Lesser General Public License 6 | // as published by the Free Software Foundation; either version 2 7 | // of the License, or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with this program; if not, see . 16 | // 17 | 18 | 19 | #include "StationaryMobility.h" 20 | 21 | 22 | Define_Module(StationaryMobility); 23 | 24 | 25 | void StationaryMobility::handleSelfMessage(cMessage *msg) 26 | { 27 | ASSERT(false); 28 | } 29 | -------------------------------------------------------------------------------- /tests/power/deviceTest/Network.ned: -------------------------------------------------------------------------------- 1 | // Energy Framework for Omnet++, version 0.9 2 | // 3 | // Author: Laura Marie Feeney 4 | // 5 | // Copyright 2009 Swedish Institute of Computer Science. 6 | // 7 | // This software is provided `as is' and without any express or implied 8 | // warranties, including, but not limited to, the implied warranties of 9 | // merchantability and fitness for a particular purpose. 10 | // 11 | //********************************************************************* 12 | package org.mixim.tests.power.deviceTest; 13 | 14 | import org.mixim.tests.power.PowerTestNetwork; 15 | 16 | // Fundamental test case, used for basic unit testing. The Host includes 17 | // only the Battery and the DutyCycleSimple device. 18 | network PowerDeviceTestNet extends PowerTestNetwork 19 | { 20 | parameters: 21 | 22 | submodules: 23 | host[numHosts]: PowerTestHost { 24 | parameters: 25 | @display("p=50,50;b=30,25,rect"); 26 | } 27 | connections allowunconnected: 28 | } 29 | -------------------------------------------------------------------------------- /.oppfeatures: -------------------------------------------------------------------------------- 1 | 2 | 15 | 28 | 29 | -------------------------------------------------------------------------------- /src/modules/nic/NicBMAC.ned: -------------------------------------------------------------------------------- 1 | // 2 | // This program is free software: you can redistribute it and/or modify 3 | // it under the terms of the GNU Lesser General Public License as published by 4 | // the Free Software Foundation, either version 3 of the License, or 5 | // (at your option) any later version. 6 | // 7 | // This program is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU Lesser General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU Lesser General Public License 13 | // along with this program. If not, see http://www.gnu.org/licenses/. 14 | // 15 | 16 | package org.mixim.modules.nic; 17 | 18 | // 19 | // This module implements a BMAC network interface card using 20 | // the "BMACLayer" MAC layer module 21 | // 22 | module NicBMAC extends WirelessNicBattery 23 | { 24 | parameters: 25 | macType = "BMacLayer"; 26 | } 27 | 28 | -------------------------------------------------------------------------------- /tests/power/deviceTestAccts/Network.ned: -------------------------------------------------------------------------------- 1 | // Energy Framework for Omnet++, version 0.9 2 | // 3 | // Author: Laura Marie Feeney 4 | // 5 | // Copyright 2009 Swedish Institute of Computer Science. 6 | // 7 | // This software is provided `as is' and without any express or implied 8 | // warranties, including, but not limited to, the implied warranties of 9 | // merchantability and fitness for a particular purpose. 10 | // 11 | //********************************************************************* 12 | package org.mixim.tests.power.deviceTestAccts; 13 | 14 | import org.mixim.tests.power.PowerTestNetwork; 15 | 16 | // Test uses the two-phase DutyCycle device, which 17 | // assigns each of the two ON periods to a different activity. 18 | network PowerDeviceTestAcctsNet extends PowerTestNetwork 19 | { 20 | parameters: 21 | 22 | submodules: 23 | host[numHosts]: PowerTestHost { 24 | parameters: 25 | @display("p=50,50;b=30,25,rect"); 26 | } 27 | connections allowunconnected: 28 | } 29 | -------------------------------------------------------------------------------- /src/inet_stub/mobility/IMobility.ned: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2005 Andras Varga 3 | // 4 | // This program is free software; you can redistribute it and/or 5 | // modify it under the terms of the GNU General Public License 6 | // as published by the Free Software Foundation; either version 2 7 | // of the License, or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; if not, see . 16 | // 17 | 18 | 19 | package inet.mobility; 20 | 21 | 22 | // 23 | // The module interface for mobility models. 24 | // 25 | // @author Andras Varga 26 | // 27 | moduleinterface IMobility 28 | { 29 | parameters: 30 | @display("i=block/cogwheel_s"); 31 | } 32 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/omnetpp_wifi_lowpow.ini: -------------------------------------------------------------------------------- 1 | 2 | # SAMPLE battery consumption parameters for a low-power wi-fi device 3 | 4 | # Marvell 88W8686 low power IEEE 802.11 chipset 5 | # see e.g. http://imote2-linux.wiki.sourceforge.net/UCAM-WSB100 6 | # here we treat all components as 3V 7 | 8 | *.host[*].nic.sleepCurrent = .85mA #; mA 9 | *.host[*].nic.idleCurrent = 172mA #; mA 10 | *.host[*].nic.rxCurrent = 200mA #; mA 11 | *.host[*].nic.txCurrent = 153mA #; mA 12 | 13 | # Marvell 88W8686 spec gives 14dBm max for CCK 14 | # leave at 20dBm from original omnetpp.ini; unclear how to translate 15 | # other parameters (e.g. sensitivity) 16 | # sim.host[*].nic.snrEval.transmitterPower = 25 ; mW 17 | 18 | # G1 Android-phone battery 19 | # note that the G1 actually uses a qualcomm chip, but smartphone is a 20 | # plausible low power wi-fi scenario 21 | 22 | *.host[*].battery.voltage = 3V #; V 23 | *.host[*].battery.capacity = 1150mAh #; mAhr 24 | *.host[*].battery.nominal = 1150mAh #; mAhr 25 | 26 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_4.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Four-0-20100408-14:34:12-4258 3 | attr configname Four 4 | attr datetime 20100408-14:34:12 5 | attr experiment Four 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4258 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 8100 21 | 1 2 0.1 7620 22 | 1 4 0.3 7020 23 | 1 14 1 6840 24 | 1 16 1.2 6240 25 | 1 25 2 5760 26 | 1 27 2 5760 27 | 1 29 2.2 5160 28 | 1 38 3 4680 29 | 1 40 3 4680 30 | 1 42 3.2 4080 31 | 1 51 4 3600 32 | 1 53 4 3600 33 | 1 55 4.2 3000 34 | 1 64 5 2520 35 | 1 66 5 2520 36 | 1 68 5.2 1920 37 | 1 77 6 1440 38 | 1 79 6 1440 39 | 1 81 6.2 840 40 | 1 90 7 360 41 | 1 92 7 360 42 | 1 94 7.2 0 43 | 1 95 8 0 44 | 1 96 9 0 45 | 1 97 10 0 46 | 1 98 11 0 47 | 1 99 12 0 48 | 1 100 13 0 49 | 1 101 14 0 50 | 1 102 15 0 51 | -------------------------------------------------------------------------------- /tests/power/deviceTestAccts/valid/omnetpp_2.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Two-0-20100408-14:34:16-4278 3 | attr configname Two 4 | attr datetime 20100408-14:34:16 5 | attr experiment Two 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4278 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 9 0.6 10080 22 | 1 11 0.8 9480 23 | 1 16 1 9120 24 | 1 24 1.6 8460 25 | 1 26 1.8 7860 26 | 1 31 2 7500 27 | 1 39 2.6 6840 28 | 1 41 2.8 6240 29 | 1 46 3 5880 30 | 1 54 3.6 5220 31 | 1 56 3.8 4620 32 | 1 61 4 4260 33 | 1 69 4.6 3600 34 | 1 71 4.8 3000 35 | 1 76 5 2640 36 | 1 84 5.6 1980 37 | 1 86 5.8 1380 38 | 1 91 6 1020 39 | 1 99 6.6 360 40 | 1 101 6.8 0 41 | 1 102 7 0 42 | 1 103 8 0 43 | 1 104 9 0 44 | 1 105 10 0 45 | 1 106 11 0 46 | 1 107 12 0 47 | 1 108 13 0 48 | 1 109 14 0 49 | 1 110 15 0 50 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_2.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Two-0-20100408-14:34:12-4256 3 | attr configname Two 4 | attr datetime 20100408-14:34:12 5 | attr experiment Two 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4256 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 2 0.1234 10249.8 22 | 1 11 1 9540 23 | 1 12 1 9540 24 | 1 14 1.234 8838 25 | 1 23 2 8460 26 | 1 25 2.2212 7796.4 27 | 1 34 3 7380 28 | 1 36 3.2084 6754.8 29 | 1 45 4 6300 30 | 1 47 4.1956 5713.2 31 | 1 56 5 5220 32 | 1 58 5.1828 4671.6 33 | 1 67 6 4140 34 | 1 70 6.2934 3259.8 35 | 1 78 7 3060 36 | 1 81 7.2806 2218.2 37 | 1 89 8 1980 38 | 1 92 8.2678 1176.6 39 | 1 100 9 900 40 | 1 103 9.255 135 41 | 1 104 9.3 0 42 | 1 105 10 0 43 | 1 106 11 0 44 | 1 107 12 0 45 | 1 108 13 0 46 | 1 109 14 0 47 | 1 110 15 0 48 | -------------------------------------------------------------------------------- /examples/baseNetwork/TestBaseNetwork.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.baseNetwork; 2 | 3 | import org.mixim.base.modules.BaseNetwork; 4 | import org.mixim.modules.node.WirelessNode; 5 | 6 | 7 | // 8 | //This example shows the basic structure of an network using MiXiM. 9 | // 10 | //The network consists of three hosts which use the CSMAMacLayer as MAC layer, 11 | //"SimplePathlossModel" as only AnalogueModel and a SNRThresholdDecider as Decider. 12 | // 13 | //The used Network- and Application layer can be defined in the omnetpp.ini. As default 14 | //the BaseNetwLayer and BurstApplLayer are used. 15 | // 16 | //You can use this network as an template for you own simulation. 17 | // 18 | network TestBaseNetwork extends BaseNetwork 19 | { 20 | parameters: 21 | int numNodes; // total number of hosts in the network 22 | 23 | submodules: 24 | node[numNodes]: WirelessNode { 25 | parameters: 26 | @display("p=170,50;i=device/wifilaptop"); 27 | nicType = default("NicCSMA"); 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/inet_stub/linklayer/INic.ned: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2012 OpenSim Ltd 3 | // 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with this program. If not, see http://www.gnu.org/licenses/. 16 | // 17 | 18 | package inet.linklayer; 19 | 20 | moduleinterface INic 21 | { 22 | parameters: 23 | @display("i=block/ifcard"); 24 | gates: 25 | input upperLayerIn; // from upper layers 26 | output upperLayerOut; // to upper layers 27 | } 28 | -------------------------------------------------------------------------------- /tests/power/deviceTestMulti/valid/omnetpp_1.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run One-0-20100408-14:34:15-4271 3 | attr configname One 4 | attr datetime 20100408-14:34:15 5 | attr experiment One 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4271 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 3 0.075 10125 22 | 1 6 0.3 9450 23 | 1 19 1 8955 24 | 1 22 1.2 8130 25 | 1 28 1.575 7560 26 | 1 36 2 7335 27 | 1 39 2.2 6510 28 | 1 45 2.575 5940 29 | 1 53 3 5715 30 | 1 56 3.2 4890 31 | 1 62 3.575 4320 32 | 1 70 4 4095 33 | 1 73 4.2 3270 34 | 1 79 4.575 2700 35 | 1 87 5 2475 36 | 1 90 5.2 1650 37 | 1 96 5.575 1080 38 | 1 104 6 855 39 | 1 107 6.2 30 40 | 1 108 6.3 0 41 | 1 109 7 0 42 | 1 110 8 0 43 | 1 111 9 0 44 | 1 112 10 0 45 | 1 113 11 0 46 | 1 114 12 0 47 | 1 115 13 0 48 | 1 116 14 0 49 | 1 117 15 0 50 | -------------------------------------------------------------------------------- /tests/power/deviceTestMulti/valid/omnetpp_3.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Three-0-20100408-14:34:15-4273 3 | attr configname Three 4 | attr datetime 20100408-14:34:15 5 | attr experiment Three 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4273 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 3 0.1 10125 22 | 1 6 0.3 9450 23 | 1 19 1 8955 24 | 1 21 1.15 8280 25 | 1 28 1.6 7635 26 | 1 36 2 7335 27 | 1 38 2.15 6660 28 | 1 45 2.6 6015 29 | 1 53 3 5715 30 | 1 55 3.15 5040 31 | 1 62 3.6 4395 32 | 1 70 4 4095 33 | 1 72 4.15 3420 34 | 1 79 4.6 2775 35 | 1 87 5 2475 36 | 1 89 5.15 1800 37 | 1 96 5.6 1155 38 | 1 104 6 855 39 | 1 106 6.15 180 40 | 1 108 6.3 0 41 | 1 109 7 0 42 | 1 110 8 0 43 | 1 111 9 0 44 | 1 112 10 0 45 | 1 113 11 0 46 | 1 114 12 0 47 | 1 115 13 0 48 | 1 116 14 0 49 | 1 117 15 0 50 | -------------------------------------------------------------------------------- /examples-inet/hybrid/WirelessHostWithBattery.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.examples.inet.hybrid; 2 | 3 | import inet.nodes.inet.WirelessHost; 4 | import org.mixim.modules.power.battery.BatteryStats; 5 | import org.mixim.modules.power.battery.SimpleBattery; 6 | 7 | 8 | // This host is an example on how a host with INET network stack 9 | // can be equipped with mobility- and wireless-modules from MiXiM. 10 | // 11 | // It contains an INET network stack and a MiXiM 802.15.4 NIC (TI_CC2420) 12 | // as well as a battery module from MiXiM which is used by the NIC. 13 | // 14 | // This host's NIC is able to operate in a multi-ConnectionManager 15 | // network, i.e. more than one physical network in parallel (non-interfering). 16 | // TODO: factor out battery into INET 17 | module WirelessHostWithBattery extends WirelessHost 18 | { 19 | submodules: 20 | batteryStats: BatteryStats { 21 | @display("p=60,106;i=block/circle"); 22 | } 23 | battery: SimpleBattery { 24 | @display("p=60,176;i=block/control"); 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /tests/power/deviceTestAccts/SimpleHost.ned: -------------------------------------------------------------------------------- 1 | //# Energy Framework for Omnet++, version 0.9 2 | //# 3 | //# Author: Laura Marie Feeney 4 | //# 5 | //# Copyright 2009 Swedish Institute of Computer Science. 6 | //# 7 | //# This software is provided `as is' and without any express or implied 8 | //# warranties, including, but not limited to, the implied warranties of 9 | //# merchantability and fitness for a particular purpose. 10 | //# 11 | //###################################################################### 12 | // empty host to test energy framework. see README.txt for details. 13 | package org.mixim.tests.power.deviceTestAccts; 14 | 15 | import org.mixim.tests.power.utils.DeviceDuty; 16 | import org.mixim.tests.power.PowerTestNode; 17 | 18 | // Empty host for simple power test. 19 | module PowerTestHost extends PowerTestNode 20 | { 21 | parameters: 22 | @display("bgb=177,156,$color;bgp=10,10"); 23 | submodules: 24 | device: DeviceDuty { 25 | parameters: 26 | @display("p=45,107;b=30,25"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/80211.ini.fti: -------------------------------------------------------------------------------- 1 | ########################################################## 2 | # Parameters for the ConnectionManager # 3 | ########################################################## 4 | **.connectionManager.carrierFrequency = 2.412e9Hz # [Hz] 5 | 6 | # max transmission power [mW] 7 | **.connectionManager.pMax = 110.11mW # [mW] 8 | # signal attenuation threshold [dBm] 9 | **.connectionManager.sat = -100dBm # [dBm] 10 | # path loss coefficient alpha 11 | **.connectionManager.alpha = 3.0 12 | **.connectionManager.sendDirect = false 13 | 14 | ########################################################## 15 | # Parameters for the Host # 16 | ########################################################## 17 | 18 | ############# Phy parameters ############################# 19 | **.phy.usePropagationDelay = false 20 | **.phy.thermalNoise = -110dBm # [dBm] 21 | **.phy.useThermalNoise = true 22 | **.phy.analogueModels = xmldoc("config.xml") 23 | **.phy.decider = xmldoc("config.xml") 24 | **.phy.maxTXPower = 110.11mW -------------------------------------------------------------------------------- /tests/basePhyLayer/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/modules/utility/SimTracer.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.modules.utility; 2 | // ************************************************************************** 3 | // * file: SimTracer.ned 4 | // * 5 | // * author: Jérôme Rousselot 6 | // * 7 | // * copyright: (C) 2007-2009 CSEM 8 | // * 9 | // * This program is free software; you can redistribute it 10 | // * and/or modify it under the terms of the GNU General Public 11 | // * License as published by the Free Software Foundation; either 12 | // * version 2 of the License, or (at your option) any later 13 | // * version. 14 | // * For further information see file COPYING 15 | // * in the top level directory 16 | // *************************************************************************** 17 | // * part of: Modifications to the MF Framework by CSEM 18 | // ***************************************************************************/ 19 | 20 | 21 | simple SimTracer 22 | { 23 | parameters: 24 | @class(SimTracer); 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/base/modules/IWirelessMac.ned: -------------------------------------------------------------------------------- 1 | package org.mixim.base.modules; 2 | 3 | // Base module for every mac layer module 4 | moduleinterface IWirelessMac 5 | { 6 | parameters: 7 | @class(BaseMacLayer); 8 | int headerLength @unit(bit); // length of the MAC packet header (in bits) 9 | string address; // MAC address as hex string (12 hex digits), or 10 | // "auto". "auto" values will be replaced by 11 | // a generated MAC address in init stage 1. 12 | 13 | gates: 14 | input upperLayerIn; // from upper layer 15 | output upperLayerOut; // to uppe layer 16 | input upperControlIn; // control from upper layer 17 | output upperControlOut; // control to upper layer 18 | input lowerLayerIn; // from lower layer 19 | output lowerLayerOut; // to lower layer 20 | input lowerControlIn; // control from lower layer 21 | output lowerControlOut; // control to lower layer 22 | } 23 | -------------------------------------------------------------------------------- /tests/power/deviceTest/valid/omnetpp_7.vec: -------------------------------------------------------------------------------- 1 | version 2 2 | run Seven-0-20100408-14:34:13-4261 3 | attr configname Seven 4 | attr datetime 20100408-14:34:13 5 | attr experiment Seven 6 | attr inifile omnetpp.ini 7 | attr iterationvars "" 8 | attr iterationvars2 $repetition=0 9 | attr measurement "" 10 | attr network sim 11 | attr processid 4261 12 | attr repetition 0 13 | attr replication #0 14 | attr resultdir results 15 | attr runnumber 0 16 | attr seedset 0 17 | 18 | vector 1 sim.host[0].batteryStats capacity ETV 19 | attr unit mW-s 20 | 1 0 0 10800 21 | 1 8 0.5 9720 22 | 1 15 1 9540 23 | 1 22 1.5 8640 24 | 1 29 2 8460 25 | 1 36 2.5 7560 26 | 1 43 3 7380 27 | 1 50 3.5 6480 28 | 1 57 4 6300 29 | 1 64 4.5 5400 30 | 1 71 5 5220 31 | 1 78 5.5 4320 32 | 1 85 6 4140 33 | 1 92 6.5 3240 34 | 1 99 7 3060 35 | 1 106 7.5 2160 36 | 1 113 8 1980 37 | 1 120 8.5 1080 38 | 1 127 9 900 39 | 1 130 9.3 0 40 | 1 131 9.5 0 41 | 1 132 10 0 42 | 1 133 10.5 0 43 | 1 134 11 0 44 | 1 135 11.5 0 45 | 1 136 12 0 46 | 1 137 12.5 0 47 | 1 138 13 0 48 | 1 139 13.5 0 49 | 1 140 14 0 50 | 1 141 14.5 0 51 | 1 142 15 0 52 | -------------------------------------------------------------------------------- /templates/baseNetworkWizard/BaseNetwork.ned.ftl: -------------------------------------------------------------------------------- 1 | 2 | <@setoutput path=targetMainFile /> 3 | ${bannerComment} 4 | 5 | <#if nedPackageName!="">package ${nedPackageName}; 6 | 7 | <#if protocolName=="802.11"> 8 | <#assign hostType="Host80211"> 9 | import org.mixim.modules.node.${hostType}; 10 | <#elseif protocolName=="B-MAC"> 11 | <#assign hostType="HostBMAC"> 12 | import org.mixim.modules.node.${hostType}; 13 | <#elseif protocolName=="L-MAC"> 14 | <#assign hostType="HostLMAC"> 15 | import org.mixim.modules.node.${hostType}; 16 | <#elseif protocolName=="CSMA 802.15.4"> 17 | <#assign hostType="Host802154"> 18 | <#else> 19 | <#assign hostType="HostBasic"> 20 | import org.mixim.modules.node.${hostType}; 21 | 22 | 23 | import org.mixim.base.modules.BaseNetwork; 24 | 25 | network ${targetTypeName} extends BaseNetwork 26 | { 27 | parameters: 28 | int numNodes; // total number of hosts in the network 29 | 30 | submodules: 31 | node[numNodes]: ${hostType} {} 32 | connections allowunconnected: 33 | // all connections and gates are to be generated dynamically 34 | } 35 | -------------------------------------------------------------------------------- /tests/connectionManager/TestCM.ned: -------------------------------------------------------------------------------- 1 | // 2 | // This program is free software: you can redistribute it and/or modify 3 | // it under the terms of the GNU Lesser General Public License as published by 4 | // the Free Software Foundation, either version 3 of the License, or 5 | // (at your option) any later version. 6 | // 7 | // This program is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU Lesser General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU Lesser General Public License 13 | // along with this program. If not, see http://www.gnu.org/licenses/. 14 | // 15 | 16 | package org.mixim.tests.connectionManager; 17 | 18 | import org.mixim.base.connectionManager.ConnectionManager; 19 | 20 | // 21 | // Test module for ConnectionManager. 22 | // 23 | simple TestCM extends ConnectionManager 24 | { 25 | parameters: 26 | @class(TestCM); 27 | double maxInterferenceDistance @unit(m); 28 | } 29 | -------------------------------------------------------------------------------- /src/inet_stub/mobility/models/ANSimMobility.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node15.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 1 6 | 1 0.999958 7 | 1.25 0.999948 8 | 1.5 0.999937 9 | 1.75 0.999926 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999869 16 | 3.5 0.999869 17 | 3.75 0.999841 18 | 4 0.99983 19 | 4.25 0.999819 20 | 4.5 0.999808 21 | 4.75 0.999797 22 | 5 0.999786 23 | 5.25 0.999775 24 | 5.5 0.999764 25 | 5.75 0.999753 26 | 6 0.999742 27 | 6.25 0.999731 28 | 6.5 0.99972 29 | 6.75 0.999709 30 | 7 0.999698 31 | 7.25 0.999687 32 | 7.5 0.999676 33 | 7.75 0.999665 34 | 8 0.999654 35 | 8.25 0.999643 36 | 8.5 0.999632 37 | 8.75 0.99962 38 | 9 0.999609 39 | 9.25 0.999598 40 | 9.5 0.999588 41 | 9.75 0.999577 42 | 10 0.999566 43 | 10.25 0.999555 44 | 10.5 0.999545 45 | 10.75 0.999534 46 | 11 0.999523 47 | 11.25 0.999518 48 | 11.5 0.999518 49 | 11.75 0.999518 50 | 12 0.999481 51 | 12.25 0.999481 52 | 12.5 0.999481 53 | 12.75 0.999481 54 | 13 0.99944 55 | 13.25 0.99944 56 | 13.5 0.99944 57 | 13.75 0.99944 58 | 14 0.999398 59 | 14.25 0.999398 60 | 14.5 0.999398 61 | 14.75 0.999398 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node6.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 1 6 | 1 0.999958 7 | 1.25 0.999948 8 | 1.5 0.999937 9 | 1.75 0.999926 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999869 16 | 3.5 0.999869 17 | 3.75 0.999841 18 | 4 0.99983 19 | 4.25 0.999818 20 | 4.5 0.999808 21 | 4.75 0.999797 22 | 5 0.999786 23 | 5.25 0.999775 24 | 5.5 0.999764 25 | 5.75 0.999752 26 | 6 0.999741 27 | 6.25 0.99973 28 | 6.5 0.999719 29 | 6.75 0.999708 30 | 7 0.999697 31 | 7.25 0.999686 32 | 7.5 0.999675 33 | 7.75 0.999664 34 | 8 0.999652 35 | 8.25 0.999641 36 | 8.5 0.99963 37 | 8.75 0.999619 38 | 9 0.999608 39 | 9.25 0.999597 40 | 9.5 0.999586 41 | 9.75 0.999575 42 | 10 0.999564 43 | 10.25 0.999553 44 | 10.5 0.999543 45 | 10.75 0.999532 46 | 11 0.999521 47 | 11.25 0.999517 48 | 11.5 0.999517 49 | 11.75 0.999517 50 | 12 0.99948 51 | 12.25 0.99948 52 | 12.5 0.99948 53 | 12.75 0.99948 54 | 13 0.999438 55 | 13.25 0.999438 56 | 13.5 0.999438 57 | 13.75 0.999438 58 | 14 0.999397 59 | 14.25 0.999397 60 | 14.5 0.999397 61 | 14.75 0.999397 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node5.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999896 13 | 2.75 0.999885 14 | 3 0.999874 15 | 3.25 0.999874 16 | 3.5 0.999874 17 | 3.75 0.999842 18 | 4 0.999832 19 | 4.25 0.999821 20 | 4.5 0.999818 21 | 4.75 0.999818 22 | 5 0.999789 23 | 5.25 0.999779 24 | 5.5 0.999779 25 | 5.75 0.999756 26 | 6 0.999746 27 | 6.25 0.999735 28 | 6.5 0.99973 29 | 6.75 0.99973 30 | 7 0.999703 31 | 7.25 0.999692 32 | 7.5 0.99969 33 | 7.75 0.99969 34 | 8 0.999661 35 | 8.25 0.999657 36 | 8.5 0.999657 37 | 8.75 0.999631 38 | 9 0.999618 39 | 9.25 0.999608 40 | 9.5 0.999596 41 | 9.75 0.999589 42 | 10 0.999575 43 | 10.25 0.999575 44 | 10.5 0.999575 45 | 10.75 0.999575 46 | 11 0.999533 47 | 11.25 0.999533 48 | 11.5 0.999533 49 | 11.75 0.999533 50 | 12 0.999492 51 | 12.25 0.999492 52 | 12.5 0.999492 53 | 12.75 0.999492 54 | 13 0.99945 55 | 13.25 0.99945 56 | 13.5 0.99945 57 | 13.75 0.99945 58 | 14 0.999409 59 | 14.25 0.999409 60 | 14.5 0.999409 61 | 14.75 0.999409 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node6.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999969 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999917 11 | 2.25 0.999917 12 | 2.5 0.999898 13 | 2.75 0.999886 14 | 3 0.999875 15 | 3.25 0.999875 16 | 3.5 0.999875 17 | 3.75 0.999843 18 | 4 0.999833 19 | 4.25 0.999822 20 | 4.5 0.99982 21 | 4.75 0.99982 22 | 5 0.999791 23 | 5.25 0.99978 24 | 5.5 0.99978 25 | 5.75 0.999758 26 | 6 0.999748 27 | 6.25 0.999738 28 | 6.5 0.999733 29 | 6.75 0.999733 30 | 7 0.999706 31 | 7.25 0.999695 32 | 7.5 0.999693 33 | 7.75 0.999693 34 | 8 0.999663 35 | 8.25 0.99966 36 | 8.5 0.99966 37 | 8.75 0.999635 38 | 9 0.999621 39 | 9.25 0.999621 40 | 9.5 0.9996 41 | 9.75 0.999595 42 | 10 0.999579 43 | 10.25 0.999579 44 | 10.5 0.999579 45 | 10.75 0.999579 46 | 11 0.999538 47 | 11.25 0.999538 48 | 11.5 0.999538 49 | 11.75 0.999538 50 | 12 0.999496 51 | 12.25 0.999496 52 | 12.5 0.999496 53 | 12.75 0.999496 54 | 13 0.999455 55 | 13.25 0.999455 56 | 13.5 0.999455 57 | 13.75 0.999455 58 | 14 0.999413 59 | 14.25 0.999413 60 | 14.5 0.999413 61 | 14.75 0.999413 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node7.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999895 14 | 3 0.999874 15 | 3.25 0.999874 16 | 3.5 0.999874 17 | 3.75 0.999842 18 | 4 0.999831 19 | 4.25 0.99982 20 | 4.5 0.999818 21 | 4.75 0.999818 22 | 5 0.999789 23 | 5.25 0.999779 24 | 5.5 0.999779 25 | 5.75 0.999756 26 | 6 0.999745 27 | 6.25 0.999734 28 | 6.5 0.99973 29 | 6.75 0.99973 30 | 7 0.999703 31 | 7.25 0.999692 32 | 7.5 0.99969 33 | 7.75 0.99969 34 | 8 0.999661 35 | 8.25 0.999658 36 | 8.5 0.999658 37 | 8.75 0.999632 38 | 9 0.999619 39 | 9.25 0.999608 40 | 9.5 0.999598 41 | 9.75 0.99959 42 | 10 0.999576 43 | 10.25 0.999576 44 | 10.5 0.999576 45 | 10.75 0.999576 46 | 11 0.999534 47 | 11.25 0.999534 48 | 11.5 0.999534 49 | 11.75 0.999534 50 | 12 0.999493 51 | 12.25 0.999493 52 | 12.5 0.999493 53 | 12.75 0.999493 54 | 13 0.999451 55 | 13.25 0.999451 56 | 13.5 0.999451 57 | 13.75 0.999451 58 | 14 0.99941 59 | 14.25 0.99941 60 | 14.5 0.99941 61 | 14.75 0.99941 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node10.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999944 8 | 1.5 0.999932 9 | 1.75 0.999921 10 | 2 0.99991 11 | 2.25 0.99991 12 | 2.5 0.999888 13 | 2.75 0.999876 14 | 3 0.999864 15 | 3.25 0.99986 16 | 3.5 0.99986 17 | 3.75 0.999832 18 | 4 0.999821 19 | 4.25 0.999809 20 | 4.5 0.999797 21 | 4.75 0.999785 22 | 5 0.999775 23 | 5.25 0.999763 24 | 5.5 0.999752 25 | 5.75 0.99974 26 | 6 0.999729 27 | 6.25 0.999717 28 | 6.5 0.999705 29 | 6.75 0.999694 30 | 7 0.999682 31 | 7.25 0.999671 32 | 7.5 0.999659 33 | 7.75 0.999648 34 | 8 0.999636 35 | 8.25 0.999624 36 | 8.5 0.999612 37 | 8.75 0.999601 38 | 9 0.999589 39 | 9.25 0.999578 40 | 9.5 0.999566 41 | 9.75 0.999554 42 | 10 0.999542 43 | 10.25 0.999531 44 | 10.5 0.999519 45 | 10.75 0.999507 46 | 11 0.999495 47 | 11.25 0.999487 48 | 11.5 0.999487 49 | 11.75 0.999487 50 | 12 0.999453 51 | 12.25 0.999453 52 | 12.5 0.999453 53 | 12.75 0.999453 54 | 13 0.999412 55 | 13.25 0.999412 56 | 13.5 0.999412 57 | 13.75 0.999412 58 | 14 0.99937 59 | 14.25 0.99937 60 | 14.5 0.99937 61 | 14.75 0.99937 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node12.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999945 8 | 1.5 0.999933 9 | 1.75 0.999921 10 | 2 0.99991 11 | 2.25 0.99991 12 | 2.5 0.999888 13 | 2.75 0.999877 14 | 3 0.999865 15 | 3.25 0.999861 16 | 3.5 0.999861 17 | 3.75 0.999833 18 | 4 0.999822 19 | 4.25 0.999811 20 | 4.5 0.9998 21 | 4.75 0.99979 22 | 5 0.999779 23 | 5.25 0.999767 24 | 5.5 0.999755 25 | 5.75 0.999744 26 | 6 0.999732 27 | 6.25 0.999721 28 | 6.5 0.999709 29 | 6.75 0.999698 30 | 7 0.999686 31 | 7.25 0.999674 32 | 7.5 0.999663 33 | 7.75 0.999651 34 | 8 0.99964 35 | 8.25 0.999629 36 | 8.5 0.999618 37 | 8.75 0.999606 38 | 9 0.999595 39 | 9.25 0.999583 40 | 9.5 0.999572 41 | 9.75 0.99956 42 | 10 0.999549 43 | 10.25 0.999537 44 | 10.5 0.999525 45 | 10.75 0.999514 46 | 11 0.999502 47 | 11.25 0.999495 48 | 11.5 0.999495 49 | 11.75 0.999495 50 | 12 0.99946 51 | 12.25 0.99946 52 | 12.5 0.99946 53 | 12.75 0.99946 54 | 13 0.999419 55 | 13.25 0.999419 56 | 13.5 0.999419 57 | 13.75 0.999419 58 | 14 0.999377 59 | 14.25 0.999377 60 | 14.5 0.999377 61 | 14.75 0.999377 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node16.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999944 8 | 1.5 0.999933 9 | 1.75 0.999923 10 | 2 0.999912 11 | 2.25 0.999912 12 | 2.5 0.99989 13 | 2.75 0.999879 14 | 3 0.999867 15 | 3.25 0.999863 16 | 3.5 0.999863 17 | 3.75 0.999836 18 | 4 0.999824 19 | 4.25 0.999813 20 | 4.5 0.999801 21 | 4.75 0.99979 22 | 5 0.999779 23 | 5.25 0.999768 24 | 5.5 0.999756 25 | 5.75 0.999745 26 | 6 0.999734 27 | 6.25 0.999722 28 | 6.5 0.999711 29 | 6.75 0.9997 30 | 7 0.999688 31 | 7.25 0.999677 32 | 7.5 0.999666 33 | 7.75 0.999654 34 | 8 0.999643 35 | 8.25 0.999631 36 | 8.5 0.99962 37 | 8.75 0.999609 38 | 9 0.999598 39 | 9.25 0.999587 40 | 9.5 0.999575 41 | 9.75 0.999564 42 | 10 0.999552 43 | 10.25 0.999541 44 | 10.5 0.999529 45 | 10.75 0.999518 46 | 11 0.999506 47 | 11.25 0.999498 48 | 11.5 0.999498 49 | 11.75 0.999498 50 | 12 0.999463 51 | 12.25 0.999463 52 | 12.5 0.999463 53 | 12.75 0.999463 54 | 13 0.999422 55 | 13.25 0.999422 56 | 13.5 0.999422 57 | 13.75 0.999422 58 | 14 0.99938 59 | 14.25 0.99938 60 | 14.5 0.99938 61 | 14.75 0.99938 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node18.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999945 8 | 1.5 0.999934 9 | 1.75 0.999923 10 | 2 0.999913 11 | 2.25 0.999913 12 | 2.5 0.999891 13 | 2.75 0.999879 14 | 3 0.999868 15 | 3.25 0.999863 16 | 3.5 0.999863 17 | 3.75 0.999836 18 | 4 0.999825 19 | 4.25 0.999813 20 | 4.5 0.999802 21 | 4.75 0.999791 22 | 5 0.99978 23 | 5.25 0.999769 24 | 5.5 0.999757 25 | 5.75 0.999746 26 | 6 0.999735 27 | 6.25 0.999724 28 | 6.5 0.999712 29 | 6.75 0.999701 30 | 7 0.999689 31 | 7.25 0.999678 32 | 7.5 0.999667 33 | 7.75 0.999655 34 | 8 0.999644 35 | 8.25 0.999633 36 | 8.5 0.999622 37 | 8.75 0.99961 38 | 9 0.999599 39 | 9.25 0.999587 40 | 9.5 0.999576 41 | 9.75 0.999564 42 | 10 0.999553 43 | 10.25 0.999541 44 | 10.5 0.99953 45 | 10.75 0.999519 46 | 11 0.999508 47 | 11.25 0.9995 48 | 11.5 0.9995 49 | 11.75 0.9995 50 | 12 0.999466 51 | 12.25 0.999466 52 | 12.5 0.999466 53 | 12.75 0.999466 54 | 13 0.999424 55 | 13.25 0.999424 56 | 13.5 0.999424 57 | 13.75 0.999424 58 | 14 0.999383 59 | 14.25 0.999383 60 | 14.5 0.999383 61 | 14.75 0.999383 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node3.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999945 8 | 1.5 0.999933 9 | 1.75 0.999921 10 | 2 0.99991 11 | 2.25 0.99991 12 | 2.5 0.999888 13 | 2.75 0.999877 14 | 3 0.999865 15 | 3.25 0.99986 16 | 3.5 0.99986 17 | 3.75 0.999833 18 | 4 0.999821 19 | 4.25 0.999809 20 | 4.5 0.999798 21 | 4.75 0.999786 22 | 5 0.999775 23 | 5.25 0.999764 24 | 5.5 0.999752 25 | 5.75 0.99974 26 | 6 0.999729 27 | 6.25 0.999717 28 | 6.5 0.999706 29 | 6.75 0.999694 30 | 7 0.999683 31 | 7.25 0.999671 32 | 7.5 0.99966 33 | 7.75 0.999649 34 | 8 0.999637 35 | 8.25 0.999626 36 | 8.5 0.999614 37 | 8.75 0.999603 38 | 9 0.999591 39 | 9.25 0.999579 40 | 9.5 0.999568 41 | 9.75 0.999556 42 | 10 0.999544 43 | 10.25 0.999533 44 | 10.5 0.999521 45 | 10.75 0.99951 46 | 11 0.999498 47 | 11.25 0.99949 48 | 11.5 0.99949 49 | 11.75 0.99949 50 | 12 0.999455 51 | 12.25 0.999455 52 | 12.5 0.999455 53 | 12.75 0.999455 54 | 13 0.999414 55 | 13.25 0.999414 56 | 13.5 0.999414 57 | 13.75 0.999414 58 | 14 0.999372 59 | 14.25 0.999372 60 | 14.5 0.999372 61 | 14.75 0.999372 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node5.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999946 8 | 1.5 0.999935 9 | 1.75 0.999925 10 | 2 0.999914 11 | 2.25 0.999914 12 | 2.5 0.999893 13 | 2.75 0.999881 14 | 3 0.99987 15 | 3.25 0.999866 16 | 3.5 0.999866 17 | 3.75 0.999838 18 | 4 0.999826 19 | 4.25 0.999815 20 | 4.5 0.999803 21 | 4.75 0.999792 22 | 5 0.999782 23 | 5.25 0.99977 24 | 5.5 0.999759 25 | 5.75 0.999747 26 | 6 0.999737 27 | 6.25 0.999725 28 | 6.5 0.999714 29 | 6.75 0.999703 30 | 7 0.999692 31 | 7.25 0.99968 32 | 7.5 0.999668 33 | 7.75 0.999657 34 | 8 0.999645 35 | 8.25 0.999634 36 | 8.5 0.999623 37 | 8.75 0.999611 38 | 9 0.9996 39 | 9.25 0.999588 40 | 9.5 0.999577 41 | 9.75 0.999565 42 | 10 0.999554 43 | 10.25 0.999542 44 | 10.5 0.99953 45 | 10.75 0.999519 46 | 11 0.999507 47 | 11.25 0.9995 48 | 11.5 0.9995 49 | 11.75 0.9995 50 | 12 0.999465 51 | 12.25 0.999465 52 | 12.5 0.999465 53 | 12.75 0.999465 54 | 13 0.999424 55 | 13.25 0.999424 56 | 13.5 0.999424 57 | 13.75 0.999424 58 | 14 0.999382 59 | 14.25 0.999382 60 | 14.5 0.999382 61 | 14.75 0.999382 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node7.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999945 8 | 1.5 0.999934 9 | 1.75 0.999923 10 | 2 0.999912 11 | 2.25 0.999912 12 | 2.5 0.99989 13 | 2.75 0.999879 14 | 3 0.999867 15 | 3.25 0.999864 16 | 3.5 0.999864 17 | 3.75 0.999836 18 | 4 0.999824 19 | 4.25 0.999812 20 | 4.5 0.999801 21 | 4.75 0.999791 22 | 5 0.999779 23 | 5.25 0.999767 24 | 5.5 0.999756 25 | 5.75 0.999744 26 | 6 0.999733 27 | 6.25 0.999721 28 | 6.5 0.99971 29 | 6.75 0.999698 30 | 7 0.999687 31 | 7.25 0.999675 32 | 7.5 0.999664 33 | 7.75 0.999652 34 | 8 0.999641 35 | 8.25 0.999629 36 | 8.5 0.999618 37 | 8.75 0.999608 38 | 9 0.999597 39 | 9.25 0.999586 40 | 9.5 0.999575 41 | 9.75 0.999564 42 | 10 0.999552 43 | 10.25 0.999541 44 | 10.5 0.99953 45 | 10.75 0.999519 46 | 11 0.999507 47 | 11.25 0.9995 48 | 11.5 0.9995 49 | 11.75 0.9995 50 | 12 0.999465 51 | 12.25 0.999465 52 | 12.5 0.999465 53 | 12.75 0.999465 54 | 13 0.999424 55 | 13.25 0.999424 56 | 13.5 0.999424 57 | 13.75 0.999424 58 | 14 0.999382 59 | 14.25 0.999382 60 | 14.5 0.999382 61 | 14.75 0.999382 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node9.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999945 8 | 1.5 0.999934 9 | 1.75 0.999923 10 | 2 0.999912 11 | 2.25 0.999912 12 | 2.5 0.999891 13 | 2.75 0.999879 14 | 3 0.999867 15 | 3.25 0.999863 16 | 3.5 0.999863 17 | 3.75 0.999837 18 | 4 0.999825 19 | 4.25 0.999813 20 | 4.5 0.999801 21 | 4.75 0.99979 22 | 5 0.99978 23 | 5.25 0.999769 24 | 5.5 0.999758 25 | 5.75 0.999746 26 | 6 0.999735 27 | 6.25 0.999724 28 | 6.5 0.999713 29 | 6.75 0.999701 30 | 7 0.99969 31 | 7.25 0.999679 32 | 7.5 0.999668 33 | 7.75 0.999657 34 | 8 0.999645 35 | 8.25 0.999634 36 | 8.5 0.999623 37 | 8.75 0.999611 38 | 9 0.9996 39 | 9.25 0.999589 40 | 9.5 0.999577 41 | 9.75 0.999566 42 | 10 0.999554 43 | 10.25 0.999543 44 | 10.5 0.999531 45 | 10.75 0.99952 46 | 11 0.999508 47 | 11.25 0.9995 48 | 11.5 0.9995 49 | 11.75 0.9995 50 | 12 0.999466 51 | 12.25 0.999466 52 | 12.5 0.999466 53 | 12.75 0.999466 54 | 13 0.999424 55 | 13.25 0.999424 56 | 13.5 0.999424 57 | 13.75 0.999424 58 | 14 0.999382 59 | 14.25 0.999382 60 | 14.5 0.999382 61 | 14.75 0.999382 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node0.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999897 13 | 2.75 0.999886 14 | 3 0.999874 15 | 3.25 0.999874 16 | 3.5 0.999874 17 | 3.75 0.999843 18 | 4 0.999832 19 | 4.25 0.999822 20 | 4.5 0.999819 21 | 4.75 0.999819 22 | 5 0.99979 23 | 5.25 0.99978 24 | 5.5 0.99978 25 | 5.75 0.999757 26 | 6 0.999747 27 | 6.25 0.999736 28 | 6.5 0.999731 29 | 6.75 0.999731 30 | 7 0.999705 31 | 7.25 0.999694 32 | 7.5 0.999692 33 | 7.75 0.999692 34 | 8 0.999662 35 | 8.25 0.999659 36 | 8.5 0.999659 37 | 8.75 0.999634 38 | 9 0.99962 39 | 9.25 0.99962 40 | 9.5 0.999599 41 | 9.75 0.999592 42 | 10 0.999578 43 | 10.25 0.999578 44 | 10.5 0.999578 45 | 10.75 0.999578 46 | 11 0.999537 47 | 11.25 0.999537 48 | 11.5 0.999537 49 | 11.75 0.999537 50 | 12 0.999495 51 | 12.25 0.999495 52 | 12.5 0.999495 53 | 12.75 0.999495 54 | 13 0.999454 55 | 13.25 0.999454 56 | 13.5 0.999454 57 | 13.75 0.999454 58 | 14 0.999412 59 | 14.25 0.999412 60 | 14.5 0.999412 61 | 14.75 0.999412 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node1.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999895 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999842 18 | 4 0.999831 19 | 4.25 0.999821 20 | 4.5 0.999818 21 | 4.75 0.999818 22 | 5 0.999789 23 | 5.25 0.999779 24 | 5.5 0.999779 25 | 5.75 0.999756 26 | 6 0.999745 27 | 6.25 0.999734 28 | 6.5 0.999729 29 | 6.75 0.999729 30 | 7 0.999703 31 | 7.25 0.999692 32 | 7.5 0.99969 33 | 7.75 0.99969 34 | 8 0.999661 35 | 8.25 0.999658 36 | 8.5 0.999658 37 | 8.75 0.999632 38 | 9 0.999619 39 | 9.25 0.999608 40 | 9.5 0.999601 41 | 9.75 0.99959 42 | 10 0.999576 43 | 10.25 0.999576 44 | 10.5 0.999576 45 | 10.75 0.999576 46 | 11 0.999535 47 | 11.25 0.999535 48 | 11.5 0.999535 49 | 11.75 0.999535 50 | 12 0.999493 51 | 12.25 0.999493 52 | 12.5 0.999493 53 | 12.75 0.999493 54 | 13 0.999451 55 | 13.25 0.999451 56 | 13.5 0.999451 57 | 13.75 0.999451 58 | 14 0.99941 59 | 14.25 0.99941 60 | 14.5 0.99941 61 | 14.75 0.99941 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node10.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999915 11 | 2.25 0.999915 12 | 2.5 0.999894 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999841 18 | 4 0.99983 19 | 4.25 0.999819 20 | 4.5 0.999817 21 | 4.75 0.999817 22 | 5 0.999787 23 | 5.25 0.999777 24 | 5.5 0.999777 25 | 5.75 0.999754 26 | 6 0.999743 27 | 6.25 0.999732 28 | 6.5 0.999728 29 | 6.75 0.999728 30 | 7 0.999701 31 | 7.25 0.99969 32 | 7.5 0.999688 33 | 7.75 0.999688 34 | 8 0.999658 35 | 8.25 0.999654 36 | 8.5 0.999654 37 | 8.75 0.999629 38 | 9 0.999615 39 | 9.25 0.999605 40 | 9.5 0.999594 41 | 9.75 0.999586 42 | 10 0.999572 43 | 10.25 0.999572 44 | 10.5 0.999572 45 | 10.75 0.999572 46 | 11 0.99953 47 | 11.25 0.99953 48 | 11.5 0.99953 49 | 11.75 0.99953 50 | 12 0.999489 51 | 12.25 0.999489 52 | 12.5 0.999489 53 | 12.75 0.999489 54 | 13 0.999447 55 | 13.25 0.999447 56 | 13.5 0.999447 57 | 13.75 0.999447 58 | 14 0.999406 59 | 14.25 0.999406 60 | 14.5 0.999406 61 | 14.75 0.999406 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node11.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999841 18 | 4 0.99983 19 | 4.25 0.999821 20 | 4.5 0.999818 21 | 4.75 0.999818 22 | 5 0.999788 23 | 5.25 0.999778 24 | 5.5 0.999778 25 | 5.75 0.999756 26 | 6 0.999745 27 | 6.25 0.999734 28 | 6.5 0.999729 29 | 6.75 0.999729 30 | 7 0.999702 31 | 7.25 0.999691 32 | 7.5 0.99969 33 | 7.75 0.99969 34 | 8 0.99966 35 | 8.25 0.999657 36 | 8.5 0.999657 37 | 8.75 0.999631 38 | 9 0.999618 39 | 9.25 0.999607 40 | 9.5 0.999599 41 | 9.75 0.999589 42 | 10 0.999575 43 | 10.25 0.999575 44 | 10.5 0.999575 45 | 10.75 0.999575 46 | 11 0.999533 47 | 11.25 0.999533 48 | 11.5 0.999533 49 | 11.75 0.999533 50 | 12 0.999491 51 | 12.25 0.999491 52 | 12.5 0.999491 53 | 12.75 0.999491 54 | 13 0.99945 55 | 13.25 0.99945 56 | 13.5 0.99945 57 | 13.75 0.99945 58 | 14 0.999408 59 | 14.25 0.999408 60 | 14.5 0.999408 61 | 14.75 0.999408 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node12.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999841 18 | 4 0.999831 19 | 4.25 0.999821 20 | 4.5 0.999818 21 | 4.75 0.999818 22 | 5 0.999789 23 | 5.25 0.999778 24 | 5.5 0.999778 25 | 5.75 0.999756 26 | 6 0.999745 27 | 6.25 0.999734 28 | 6.5 0.999729 29 | 6.75 0.999729 30 | 7 0.999703 31 | 7.25 0.999692 32 | 7.5 0.99969 33 | 7.75 0.99969 34 | 8 0.99966 35 | 8.25 0.999657 36 | 8.5 0.999657 37 | 8.75 0.999631 38 | 9 0.999618 39 | 9.25 0.999608 40 | 9.5 0.999596 41 | 9.75 0.999589 42 | 10 0.999575 43 | 10.25 0.999575 44 | 10.5 0.999575 45 | 10.75 0.999575 46 | 11 0.999533 47 | 11.25 0.999533 48 | 11.5 0.999533 49 | 11.75 0.999533 50 | 12 0.999492 51 | 12.25 0.999492 52 | 12.5 0.999492 53 | 12.75 0.999492 54 | 13 0.99945 55 | 13.25 0.99945 56 | 13.5 0.99945 57 | 13.75 0.99945 58 | 14 0.999409 59 | 14.25 0.999409 60 | 14.5 0.999409 61 | 14.75 0.999409 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node13.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999894 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999841 18 | 4 0.99983 19 | 4.25 0.999819 20 | 4.5 0.999817 21 | 4.75 0.999817 22 | 5 0.999787 23 | 5.25 0.999777 24 | 5.5 0.999777 25 | 5.75 0.999754 26 | 6 0.999744 27 | 6.25 0.999733 28 | 6.5 0.999728 29 | 6.75 0.999728 30 | 7 0.999701 31 | 7.25 0.99969 32 | 7.5 0.999688 33 | 7.75 0.999688 34 | 8 0.999659 35 | 8.25 0.999655 36 | 8.5 0.999655 37 | 8.75 0.99963 38 | 9 0.999616 39 | 9.25 0.999606 40 | 9.5 0.999595 41 | 9.75 0.999587 42 | 10 0.999573 43 | 10.25 0.999573 44 | 10.5 0.999573 45 | 10.75 0.999573 46 | 11 0.999532 47 | 11.25 0.999532 48 | 11.5 0.999532 49 | 11.75 0.999532 50 | 12 0.99949 51 | 12.25 0.99949 52 | 12.5 0.99949 53 | 12.75 0.99949 54 | 13 0.999448 55 | 13.25 0.999448 56 | 13.5 0.999448 57 | 13.75 0.999448 58 | 14 0.999407 59 | 14.25 0.999407 60 | 14.5 0.999407 61 | 14.75 0.999407 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node14.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999885 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999842 18 | 4 0.999831 19 | 4.25 0.999821 20 | 4.5 0.999818 21 | 4.75 0.999818 22 | 5 0.999789 23 | 5.25 0.999778 24 | 5.5 0.999778 25 | 5.75 0.999756 26 | 6 0.999745 27 | 6.25 0.999734 28 | 6.5 0.999729 29 | 6.75 0.999729 30 | 7 0.999702 31 | 7.25 0.999691 32 | 7.5 0.99969 33 | 7.75 0.99969 34 | 8 0.99966 35 | 8.25 0.999657 36 | 8.5 0.999657 37 | 8.75 0.999631 38 | 9 0.999618 39 | 9.25 0.999607 40 | 9.5 0.999599 41 | 9.75 0.999589 42 | 10 0.999575 43 | 10.25 0.999575 44 | 10.5 0.999575 45 | 10.75 0.999575 46 | 11 0.999533 47 | 11.25 0.999533 48 | 11.5 0.999533 49 | 11.75 0.999533 50 | 12 0.999492 51 | 12.25 0.999492 52 | 12.5 0.999492 53 | 12.75 0.999492 54 | 13 0.99945 55 | 13.25 0.99945 56 | 13.5 0.99945 57 | 13.75 0.99945 58 | 14 0.999408 59 | 14.25 0.999408 60 | 14.5 0.999408 61 | 14.75 0.999408 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node15.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999969 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999917 11 | 2.25 0.999917 12 | 2.5 0.999898 13 | 2.75 0.999886 14 | 3 0.999875 15 | 3.25 0.999875 16 | 3.5 0.999875 17 | 3.75 0.999843 18 | 4 0.999833 19 | 4.25 0.999822 20 | 4.5 0.99982 21 | 4.75 0.99982 22 | 5 0.99979 23 | 5.25 0.999781 24 | 5.5 0.999781 25 | 5.75 0.999758 26 | 6 0.999748 27 | 6.25 0.999738 28 | 6.5 0.999733 29 | 6.75 0.999733 30 | 7 0.999706 31 | 7.25 0.999695 32 | 7.5 0.999693 33 | 7.75 0.999693 34 | 8 0.999664 35 | 8.25 0.99966 36 | 8.5 0.99966 37 | 8.75 0.999636 38 | 9 0.999622 39 | 9.25 0.999622 40 | 9.5 0.999601 41 | 9.75 0.999595 42 | 10 0.999579 43 | 10.25 0.999579 44 | 10.5 0.999579 45 | 10.75 0.999579 46 | 11 0.999538 47 | 11.25 0.999538 48 | 11.5 0.999538 49 | 11.75 0.999538 50 | 12 0.999496 51 | 12.25 0.999496 52 | 12.5 0.999496 53 | 12.75 0.999496 54 | 13 0.999455 55 | 13.25 0.999455 56 | 13.5 0.999455 57 | 13.75 0.999455 58 | 14 0.999413 59 | 14.25 0.999413 60 | 14.5 0.999413 61 | 14.75 0.999413 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node16.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999843 18 | 4 0.999831 19 | 4.25 0.99982 20 | 4.5 0.99982 21 | 4.75 0.99982 22 | 5 0.999789 23 | 5.25 0.999779 24 | 5.5 0.999779 25 | 5.75 0.999756 26 | 6 0.999746 27 | 6.25 0.999735 28 | 6.5 0.99973 29 | 6.75 0.99973 30 | 7 0.999703 31 | 7.25 0.999692 32 | 7.5 0.999691 33 | 7.75 0.999691 34 | 8 0.999661 35 | 8.25 0.999657 36 | 8.5 0.999657 37 | 8.75 0.999632 38 | 9 0.999619 39 | 9.25 0.999608 40 | 9.5 0.999597 41 | 9.75 0.99959 42 | 10 0.999575 43 | 10.25 0.999575 44 | 10.5 0.999575 45 | 10.75 0.999575 46 | 11 0.999534 47 | 11.25 0.999534 48 | 11.5 0.999534 49 | 11.75 0.999534 50 | 12 0.999492 51 | 12.25 0.999492 52 | 12.5 0.999492 53 | 12.75 0.999492 54 | 13 0.999451 55 | 13.25 0.999451 56 | 13.5 0.999451 57 | 13.75 0.999451 58 | 14 0.999409 59 | 14.25 0.999409 60 | 14.5 0.999409 61 | 14.75 0.999409 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node18.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999885 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999843 18 | 4 0.999831 19 | 4.25 0.999821 20 | 4.5 0.999821 21 | 4.75 0.999821 22 | 5 0.999789 23 | 5.25 0.999779 24 | 5.5 0.999779 25 | 5.75 0.999757 26 | 6 0.999746 27 | 6.25 0.999735 28 | 6.5 0.99973 29 | 6.75 0.99973 30 | 7 0.999704 31 | 7.25 0.999693 32 | 7.5 0.999691 33 | 7.75 0.999691 34 | 8 0.999661 35 | 8.25 0.999658 36 | 8.5 0.999658 37 | 8.75 0.999632 38 | 9 0.999619 39 | 9.25 0.999609 40 | 9.5 0.999597 41 | 9.75 0.99959 42 | 10 0.999576 43 | 10.25 0.999576 44 | 10.5 0.999576 45 | 10.75 0.999576 46 | 11 0.999534 47 | 11.25 0.999534 48 | 11.5 0.999534 49 | 11.75 0.999534 50 | 12 0.999493 51 | 12.25 0.999493 52 | 12.5 0.999493 53 | 12.75 0.999493 54 | 13 0.999451 55 | 13.25 0.999451 56 | 13.5 0.999451 57 | 13.75 0.999451 58 | 14 0.99941 59 | 14.25 0.99941 60 | 14.5 0.99941 61 | 14.75 0.99941 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node2.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999915 11 | 2.25 0.999915 12 | 2.5 0.999895 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999841 18 | 4 0.99983 19 | 4.25 0.999819 20 | 4.5 0.999817 21 | 4.75 0.999817 22 | 5 0.999788 23 | 5.25 0.999777 24 | 5.5 0.999777 25 | 5.75 0.999754 26 | 6 0.999744 27 | 6.25 0.999733 28 | 6.5 0.999728 29 | 6.75 0.999728 30 | 7 0.999701 31 | 7.25 0.99969 32 | 7.5 0.999688 33 | 7.75 0.999688 34 | 8 0.999659 35 | 8.25 0.999655 36 | 8.5 0.999655 37 | 8.75 0.999629 38 | 9 0.999616 39 | 9.25 0.999606 40 | 9.5 0.999595 41 | 9.75 0.999587 42 | 10 0.999573 43 | 10.25 0.999573 44 | 10.5 0.999573 45 | 10.75 0.999573 46 | 11 0.999532 47 | 11.25 0.999532 48 | 11.5 0.999532 49 | 11.75 0.999532 50 | 12 0.99949 51 | 12.25 0.99949 52 | 12.5 0.99949 53 | 12.75 0.99949 54 | 13 0.999449 55 | 13.25 0.999449 56 | 13.5 0.999449 57 | 13.75 0.999449 58 | 14 0.999407 59 | 14.25 0.999407 60 | 14.5 0.999407 61 | 14.75 0.999407 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node3.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999884 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999841 18 | 4 0.99983 19 | 4.25 0.999819 20 | 4.5 0.999817 21 | 4.75 0.999817 22 | 5 0.999788 23 | 5.25 0.999777 24 | 5.5 0.999777 25 | 5.75 0.999754 26 | 6 0.999744 27 | 6.25 0.999733 28 | 6.5 0.999728 29 | 6.75 0.999728 30 | 7 0.999702 31 | 7.25 0.99969 32 | 7.5 0.999688 33 | 7.75 0.999688 34 | 8 0.999659 35 | 8.25 0.999655 36 | 8.5 0.999655 37 | 8.75 0.999629 38 | 9 0.999616 39 | 9.25 0.999606 40 | 9.5 0.999594 41 | 9.75 0.999587 42 | 10 0.999573 43 | 10.25 0.999573 44 | 10.5 0.999573 45 | 10.75 0.999573 46 | 11 0.999531 47 | 11.25 0.999531 48 | 11.5 0.999531 49 | 11.75 0.999531 50 | 12 0.99949 51 | 12.25 0.99949 52 | 12.5 0.99949 53 | 12.75 0.99949 54 | 13 0.999448 55 | 13.25 0.999448 56 | 13.5 0.999448 57 | 13.75 0.999448 58 | 14 0.999407 59 | 14.25 0.999407 60 | 14.5 0.999407 61 | 14.75 0.999407 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node8.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999969 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999917 11 | 2.25 0.999917 12 | 2.5 0.999897 13 | 2.75 0.999886 14 | 3 0.999874 15 | 3.25 0.999874 16 | 3.5 0.999874 17 | 3.75 0.999843 18 | 4 0.999832 19 | 4.25 0.999821 20 | 4.5 0.999819 21 | 4.75 0.999819 22 | 5 0.99979 23 | 5.25 0.99978 24 | 5.5 0.99978 25 | 5.75 0.999757 26 | 6 0.999746 27 | 6.25 0.999736 28 | 6.5 0.999731 29 | 6.75 0.999731 30 | 7 0.999704 31 | 7.25 0.999693 32 | 7.5 0.999691 33 | 7.75 0.999691 34 | 8 0.999662 35 | 8.25 0.999658 36 | 8.5 0.999658 37 | 8.75 0.999632 38 | 9 0.999619 39 | 9.25 0.999609 40 | 9.5 0.999598 41 | 9.75 0.999591 42 | 10 0.999577 43 | 10.25 0.999577 44 | 10.5 0.999577 45 | 10.75 0.999577 46 | 11 0.999535 47 | 11.25 0.999535 48 | 11.5 0.999535 49 | 11.75 0.999535 50 | 12 0.999493 51 | 12.25 0.999493 52 | 12.5 0.999493 53 | 12.75 0.999493 54 | 13 0.999452 55 | 13.25 0.999452 56 | 13.5 0.999452 57 | 13.75 0.999452 58 | 14 0.99941 59 | 14.25 0.99941 60 | 14.5 0.99941 61 | 14.75 0.99941 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node9.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999885 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999844 18 | 4 0.999831 19 | 4.25 0.999821 20 | 4.5 0.999821 21 | 4.75 0.999821 22 | 5 0.999789 23 | 5.25 0.999779 24 | 5.5 0.999779 25 | 5.75 0.999757 26 | 6 0.999746 27 | 6.25 0.999736 28 | 6.5 0.999731 29 | 6.75 0.999731 30 | 7 0.999704 31 | 7.25 0.999693 32 | 7.5 0.999693 33 | 7.75 0.999693 34 | 8 0.999662 35 | 8.25 0.999658 36 | 8.5 0.999658 37 | 8.75 0.999633 38 | 9 0.99962 39 | 9.25 0.999609 40 | 9.5 0.999598 41 | 9.75 0.999591 42 | 10 0.999577 43 | 10.25 0.999577 44 | 10.5 0.999577 45 | 10.75 0.999577 46 | 11 0.999535 47 | 11.25 0.999535 48 | 11.5 0.999535 49 | 11.75 0.999535 50 | 12 0.999493 51 | 12.25 0.999493 52 | 12.5 0.999493 53 | 12.75 0.999493 54 | 13 0.999452 55 | 13.25 0.999452 56 | 13.5 0.999452 57 | 13.75 0.999452 58 | 14 0.99941 59 | 14.25 0.99941 60 | 14.5 0.99941 61 | 14.75 0.99941 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node0.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999969 6 | 1 0.999958 7 | 1.25 0.999947 8 | 1.5 0.999936 9 | 1.75 0.999924 10 | 2 0.999914 11 | 2.25 0.999914 12 | 2.5 0.999893 13 | 2.75 0.999882 14 | 3 0.999871 15 | 3.25 0.999869 16 | 3.5 0.999869 17 | 3.75 0.999839 18 | 4 0.999828 19 | 4.25 0.999817 20 | 4.5 0.999805 21 | 4.75 0.999794 22 | 5 0.999783 23 | 5.25 0.999772 24 | 5.5 0.99976 25 | 5.75 0.999749 26 | 6 0.999737 27 | 6.25 0.999726 28 | 6.5 0.999715 29 | 6.75 0.999704 30 | 7 0.999693 31 | 7.25 0.999682 32 | 7.5 0.999671 33 | 7.75 0.99966 34 | 8 0.999649 35 | 8.25 0.999638 36 | 8.5 0.999627 37 | 8.75 0.999615 38 | 9 0.999604 39 | 9.25 0.999593 40 | 9.5 0.999583 41 | 9.75 0.999572 42 | 10 0.999561 43 | 10.25 0.999549 44 | 10.5 0.99954 45 | 10.75 0.999529 46 | 11 0.999518 47 | 11.25 0.999513 48 | 11.5 0.999513 49 | 11.75 0.999513 50 | 12 0.999476 51 | 12.25 0.999476 52 | 12.5 0.999476 53 | 12.75 0.999476 54 | 13 0.999435 55 | 13.25 0.999435 56 | 13.5 0.999435 57 | 13.75 0.999435 58 | 14 0.999393 59 | 14.25 0.999393 60 | 14.5 0.999393 61 | 14.75 0.999393 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node1.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999944 8 | 1.5 0.999932 9 | 1.75 0.999921 10 | 2 0.99991 11 | 2.25 0.99991 12 | 2.5 0.999889 13 | 2.75 0.999877 14 | 3 0.999866 15 | 3.25 0.999863 16 | 3.5 0.999863 17 | 3.75 0.999834 18 | 4 0.999822 19 | 4.25 0.999811 20 | 4.5 0.999799 21 | 4.75 0.999789 22 | 5 0.999777 23 | 5.25 0.999766 24 | 5.5 0.999755 25 | 5.75 0.999744 26 | 6 0.999732 27 | 6.25 0.999721 28 | 6.5 0.999709 29 | 6.75 0.999698 30 | 7 0.999686 31 | 7.25 0.999674 32 | 7.5 0.999663 33 | 7.75 0.999651 34 | 8 0.99964 35 | 8.25 0.999629 36 | 8.5 0.999617 37 | 8.75 0.999607 38 | 9 0.999596 39 | 9.25 0.999585 40 | 9.5 0.999574 41 | 9.75 0.999563 42 | 10 0.999552 43 | 10.25 0.99954 44 | 10.5 0.999529 45 | 10.75 0.999518 46 | 11 0.999507 47 | 11.25 0.999499 48 | 11.5 0.999499 49 | 11.75 0.999499 50 | 12 0.999464 51 | 12.25 0.999464 52 | 12.5 0.999464 53 | 12.75 0.999464 54 | 13 0.999423 55 | 13.25 0.999423 56 | 13.5 0.999423 57 | 13.75 0.999423 58 | 14 0.999381 59 | 14.25 0.999381 60 | 14.5 0.999381 61 | 14.75 0.999381 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node13.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999944 8 | 1.5 0.999933 9 | 1.75 0.999921 10 | 2 0.99991 11 | 2.25 0.99991 12 | 2.5 0.999888 13 | 2.75 0.999876 14 | 3 0.999864 15 | 3.25 0.99986 16 | 3.5 0.99986 17 | 3.75 0.999832 18 | 4 0.999821 19 | 4.25 0.999809 20 | 4.5 0.999797 21 | 4.75 0.999786 22 | 5 0.999775 23 | 5.25 0.999763 24 | 5.5 0.999751 25 | 5.75 0.99974 26 | 6 0.999728 27 | 6.25 0.999716 28 | 6.5 0.999705 29 | 6.75 0.999693 30 | 7 0.999682 31 | 7.25 0.99967 32 | 7.5 0.999659 33 | 7.75 0.999648 34 | 8 0.999636 35 | 8.25 0.999624 36 | 8.5 0.999613 37 | 8.75 0.999602 38 | 9 0.99959 39 | 9.25 0.999579 40 | 9.5 0.999568 41 | 9.75 0.999556 42 | 10 0.999545 43 | 10.25 0.999533 44 | 10.5 0.999522 45 | 10.75 0.999511 46 | 11 0.999499 47 | 11.25 0.999491 48 | 11.5 0.999491 49 | 11.75 0.999491 50 | 12 0.999457 51 | 12.25 0.999457 52 | 12.5 0.999457 53 | 12.75 0.999457 54 | 13 0.999415 55 | 13.25 0.999415 56 | 13.5 0.999415 57 | 13.75 0.999415 58 | 14 0.999374 59 | 14.25 0.999374 60 | 14.5 0.999374 61 | 14.75 0.999374 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node14.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999946 8 | 1.5 0.999934 9 | 1.75 0.999923 10 | 2 0.999912 11 | 2.25 0.999912 12 | 2.5 0.99989 13 | 2.75 0.999879 14 | 3 0.999867 15 | 3.25 0.999863 16 | 3.5 0.999863 17 | 3.75 0.999835 18 | 4 0.999824 19 | 4.25 0.999812 20 | 4.5 0.9998 21 | 4.75 0.99979 22 | 5 0.999778 23 | 5.25 0.999767 24 | 5.5 0.999755 25 | 5.75 0.999744 26 | 6 0.999732 27 | 6.25 0.999721 28 | 6.5 0.999709 29 | 6.75 0.999697 30 | 7 0.999686 31 | 7.25 0.999674 32 | 7.5 0.999662 33 | 7.75 0.999651 34 | 8 0.99964 35 | 8.25 0.999628 36 | 8.5 0.999617 37 | 8.75 0.999606 38 | 9 0.999594 39 | 9.25 0.999583 40 | 9.5 0.999571 41 | 9.75 0.999559 42 | 10 0.999548 43 | 10.25 0.999536 44 | 10.5 0.999525 45 | 10.75 0.999513 46 | 11 0.999502 47 | 11.25 0.999494 48 | 11.5 0.999494 49 | 11.75 0.999494 50 | 12 0.999459 51 | 12.25 0.999459 52 | 12.5 0.999459 53 | 12.75 0.999459 54 | 13 0.999418 55 | 13.25 0.999418 56 | 13.5 0.999418 57 | 13.75 0.999418 58 | 14 0.999376 59 | 14.25 0.999376 60 | 14.5 0.999376 61 | 14.75 0.999376 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node17.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999945 8 | 1.5 0.999933 9 | 1.75 0.999921 10 | 2 0.99991 11 | 2.25 0.99991 12 | 2.5 0.999889 13 | 2.75 0.999878 14 | 3 0.999867 15 | 3.25 0.999863 16 | 3.5 0.999863 17 | 3.75 0.999835 18 | 4 0.999823 19 | 4.25 0.999812 20 | 4.5 0.9998 21 | 4.75 0.999789 22 | 5 0.999778 23 | 5.25 0.999766 24 | 5.5 0.999755 25 | 5.75 0.999743 26 | 6 0.999731 27 | 6.25 0.99972 28 | 6.5 0.999708 29 | 6.75 0.999697 30 | 7 0.999685 31 | 7.25 0.999674 32 | 7.5 0.999662 33 | 7.75 0.999651 34 | 8 0.999639 35 | 8.25 0.999628 36 | 8.5 0.999616 37 | 8.75 0.999605 38 | 9 0.999593 39 | 9.25 0.999582 40 | 9.5 0.99957 41 | 9.75 0.999558 42 | 10 0.999547 43 | 10.25 0.999535 44 | 10.5 0.999524 45 | 10.75 0.999512 46 | 11 0.9995 47 | 11.25 0.999492 48 | 11.5 0.999492 49 | 11.75 0.999492 50 | 12 0.999458 51 | 12.25 0.999458 52 | 12.5 0.999458 53 | 12.75 0.999458 54 | 13 0.999416 55 | 13.25 0.999416 56 | 13.5 0.999416 57 | 13.75 0.999416 58 | 14 0.999375 59 | 14.25 0.999375 60 | 14.5 0.999375 61 | 14.75 0.999375 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node2.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999944 8 | 1.5 0.999933 9 | 1.75 0.999921 10 | 2 0.99991 11 | 2.25 0.99991 12 | 2.5 0.999888 13 | 2.75 0.999876 14 | 3 0.999865 15 | 3.25 0.99986 16 | 3.5 0.99986 17 | 3.75 0.999832 18 | 4 0.999821 19 | 4.25 0.999809 20 | 4.5 0.999798 21 | 4.75 0.999786 22 | 5 0.999775 23 | 5.25 0.999763 24 | 5.5 0.999752 25 | 5.75 0.99974 26 | 6 0.999728 27 | 6.25 0.999716 28 | 6.5 0.999705 29 | 6.75 0.999693 30 | 7 0.999681 31 | 7.25 0.999669 32 | 7.5 0.999658 33 | 7.75 0.999646 34 | 8 0.999635 35 | 8.25 0.999624 36 | 8.5 0.999613 37 | 8.75 0.999601 38 | 9 0.999589 39 | 9.25 0.999578 40 | 9.5 0.999567 41 | 9.75 0.999556 42 | 10 0.999544 43 | 10.25 0.999533 44 | 10.5 0.999522 45 | 10.75 0.999511 46 | 11 0.999499 47 | 11.25 0.999491 48 | 11.5 0.999491 49 | 11.75 0.999491 50 | 12 0.999457 51 | 12.25 0.999457 52 | 12.5 0.999457 53 | 12.75 0.999457 54 | 13 0.999415 55 | 13.25 0.999415 56 | 13.5 0.999415 57 | 13.75 0.999415 58 | 14 0.999373 59 | 14.25 0.999373 60 | 14.5 0.999373 61 | 14.75 0.999373 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node4.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999956 7 | 1.25 0.999945 8 | 1.5 0.999933 9 | 1.75 0.999921 10 | 2 0.99991 11 | 2.25 0.99991 12 | 2.5 0.999889 13 | 2.75 0.999877 14 | 3 0.999865 15 | 3.25 0.999862 16 | 3.5 0.999862 17 | 3.75 0.999834 18 | 4 0.999823 19 | 4.25 0.999811 20 | 4.5 0.999799 21 | 4.75 0.999788 22 | 5 0.999777 23 | 5.25 0.999766 24 | 5.5 0.999754 25 | 5.75 0.999742 26 | 6 0.999731 27 | 6.25 0.999719 28 | 6.5 0.999707 29 | 6.75 0.999696 30 | 7 0.999684 31 | 7.25 0.999673 32 | 7.5 0.999661 33 | 7.75 0.999649 34 | 8 0.999638 35 | 8.25 0.999626 36 | 8.5 0.999615 37 | 8.75 0.999603 38 | 9 0.999592 39 | 9.25 0.999581 40 | 9.5 0.99957 41 | 9.75 0.999558 42 | 10 0.999547 43 | 10.25 0.999535 44 | 10.5 0.999524 45 | 10.75 0.999513 46 | 11 0.999502 47 | 11.25 0.999494 48 | 11.5 0.999494 49 | 11.75 0.999494 50 | 12 0.99946 51 | 12.25 0.99946 52 | 12.5 0.99946 53 | 12.75 0.99946 54 | 13 0.999418 55 | 13.25 0.999418 56 | 13.5 0.999418 57 | 13.75 0.999418 58 | 14 0.999377 59 | 14.25 0.999377 60 | 14.5 0.999377 61 | 14.75 0.999377 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_50/node8.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999969 6 | 1 0.999958 7 | 1.25 0.999947 8 | 1.5 0.999936 9 | 1.75 0.999925 10 | 2 0.999915 11 | 2.25 0.999915 12 | 2.5 0.999894 13 | 2.75 0.999883 14 | 3 0.999872 15 | 3.25 0.999868 16 | 3.5 0.999868 17 | 3.75 0.99984 18 | 4 0.999829 19 | 4.25 0.999817 20 | 4.5 0.999806 21 | 4.75 0.999795 22 | 5 0.999784 23 | 5.25 0.999772 24 | 5.5 0.999761 25 | 5.75 0.99975 26 | 6 0.999739 27 | 6.25 0.999728 28 | 6.5 0.999716 29 | 6.75 0.999705 30 | 7 0.999694 31 | 7.25 0.999682 32 | 7.5 0.999671 33 | 7.75 0.999659 34 | 8 0.999648 35 | 8.25 0.999636 36 | 8.5 0.999625 37 | 8.75 0.999613 38 | 9 0.999602 39 | 9.25 0.999591 40 | 9.5 0.999579 41 | 9.75 0.999568 42 | 10 0.999557 43 | 10.25 0.999546 44 | 10.5 0.999534 45 | 10.75 0.999523 46 | 11 0.999513 47 | 11.25 0.999508 48 | 11.5 0.999508 49 | 11.75 0.999508 50 | 12 0.999471 51 | 12.25 0.999471 52 | 12.5 0.999471 53 | 12.75 0.999471 54 | 13 0.99943 55 | 13.25 0.99943 56 | 13.5 0.99943 57 | 13.75 0.99943 58 | 14 0.999388 59 | 14.25 0.999388 60 | 14.5 0.999388 61 | 14.75 0.999388 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node17.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999885 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999842 18 | 4 0.999831 19 | 4.25 0.999821 20 | 4.5 0.999818 21 | 4.75 0.999818 22 | 5 0.999789 23 | 5.25 0.999778 24 | 5.5 0.999778 25 | 5.75 0.999755 26 | 6 0.999745 27 | 6.25 0.999734 28 | 6.5 0.999729 29 | 6.75 0.999729 30 | 7 0.999702 31 | 7.25 0.999691 32 | 7.5 0.999689 33 | 7.75 0.999689 34 | 8 0.99966 35 | 8.25 0.999656 36 | 8.5 0.999656 37 | 8.75 0.999631 38 | 9 0.999617 39 | 9.25 0.999607 40 | 9.5 0.999596 41 | 9.75 0.999588 42 | 10 0.999574 43 | 10.25 0.999574 44 | 10.5 0.999574 45 | 10.75 0.999574 46 | 11 0.999532 47 | 11.25 0.999532 48 | 11.5 0.999532 49 | 11.75 0.999532 50 | 12 0.999491 51 | 12.25 0.999491 52 | 12.5 0.999491 53 | 12.75 0.999491 54 | 13 0.999449 55 | 13.25 0.999449 56 | 13.5 0.999449 57 | 13.75 0.999449 58 | 14 0.999408 59 | 14.25 0.999408 60 | 14.5 0.999408 61 | 14.75 0.999408 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node19.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999969 6 | 1 0.999958 7 | 1.25 0.999958 8 | 1.5 0.999958 9 | 1.75 0.999958 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999897 13 | 2.75 0.999886 14 | 3 0.999874 15 | 3.25 0.999874 16 | 3.5 0.999874 17 | 3.75 0.999843 18 | 4 0.999832 19 | 4.25 0.999821 20 | 4.5 0.999819 21 | 4.75 0.999819 22 | 5 0.99979 23 | 5.25 0.999779 24 | 5.5 0.999779 25 | 5.75 0.999757 26 | 6 0.999746 27 | 6.25 0.999736 28 | 6.5 0.999731 29 | 6.75 0.999731 30 | 7 0.999704 31 | 7.25 0.999693 32 | 7.5 0.999691 33 | 7.75 0.999691 34 | 8 0.999661 35 | 8.25 0.999658 36 | 8.5 0.999658 37 | 8.75 0.999632 38 | 9 0.999619 39 | 9.25 0.999608 40 | 9.5 0.999597 41 | 9.75 0.99959 42 | 10 0.999576 43 | 10.25 0.999576 44 | 10.5 0.999576 45 | 10.75 0.999576 46 | 11 0.999534 47 | 11.25 0.999534 48 | 11.5 0.999534 49 | 11.75 0.999534 50 | 12 0.999493 51 | 12.25 0.999493 52 | 12.5 0.999493 53 | 12.75 0.999493 54 | 13 0.999451 55 | 13.25 0.999451 56 | 13.5 0.999451 57 | 13.75 0.999451 58 | 14 0.999409 59 | 14.25 0.999409 60 | 14.5 0.999409 61 | 14.75 0.999409 62 | -------------------------------------------------------------------------------- /tests/power/Nic80211Test/valid/out_10/node4.power: -------------------------------------------------------------------------------- 1 | #simTime batteryState 2 | 0 1 3 | 0.25 1 4 | 0.5 1 5 | 0.75 0.999968 6 | 1 0.999957 7 | 1.25 0.999957 8 | 1.5 0.999957 9 | 1.75 0.999957 10 | 2 0.999916 11 | 2.25 0.999916 12 | 2.5 0.999895 13 | 2.75 0.999885 14 | 3 0.999873 15 | 3.25 0.999873 16 | 3.5 0.999873 17 | 3.75 0.999842 18 | 4 0.999831 19 | 4.25 0.99982 20 | 4.5 0.999818 21 | 4.75 0.999818 22 | 5 0.999788 23 | 5.25 0.999778 24 | 5.5 0.999778 25 | 5.75 0.999755 26 | 6 0.999744 27 | 6.25 0.999733 28 | 6.5 0.999729 29 | 6.75 0.999729 30 | 7 0.999702 31 | 7.25 0.999691 32 | 7.5 0.999689 33 | 7.75 0.999689 34 | 8 0.999659 35 | 8.25 0.999655 36 | 8.5 0.999655 37 | 8.75 0.99963 38 | 9 0.999617 39 | 9.25 0.999607 40 | 9.5 0.999595 41 | 9.75 0.999588 42 | 10 0.999574 43 | 10.25 0.999574 44 | 10.5 0.999574 45 | 10.75 0.999574 46 | 11 0.999532 47 | 11.25 0.999532 48 | 11.5 0.999532 49 | 11.75 0.999532 50 | 12 0.999491 51 | 12.25 0.999491 52 | 12.5 0.999491 53 | 12.75 0.999491 54 | 13 0.999449 55 | 13.25 0.999449 56 | 13.5 0.999449 57 | 13.75 0.999449 58 | 14 0.999408 59 | 14.25 0.999408 60 | 14.5 0.999408 61 | 14.75 0.999408 62 | --------------------------------------------------------------------------------