omnetpp.ini 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [General]
  2. network = PowerConsumptionShowcase
  3. sim-time-limit = 100s
  4. **.numHost = 20
  5. # visualizer
  6. *.visualizer.energyStorageVisualizer.displayEnergyStorages = true
  7. # status
  8. **.hasStatus = true
  9. # power
  10. **.energyStorageType = "SimpleEpEnergyStorage"
  11. **.energyConsumerType = "StateBasedEpEnergyConsumer"
  12. *.host[*].energyManagementType = "SimpleEpEnergyManagement"
  13. *.host[*].energyStorage.nominalCapacity = 0.05J
  14. *.host[*].energyManagement.nodeShutdownCapacity = 0.1 * energyStorage.nominalCapacity
  15. *.host[*].energyManagement.nodeStartCapacity = 0.5 * energyStorage.nominalCapacity
  16. *.host[*].energyStorage.initialCapacity = uniform(0.1 * energyStorage.nominalCapacity, energyStorage.nominalCapacity)
  17. *.host[*].energyGeneratorType = "AlternatingEpEnergyGenerator"
  18. *.host[*].energyGenerator.powerGeneration = 4mW
  19. *.host[*].energyGenerator.sleepInterval = exponential(25s)
  20. *.host[*].energyGenerator.generationInterval = exponential(25s)
  21. # mobility
  22. **.mobility.constraintAreaMinZ = 0m
  23. **.mobility.constraintAreaMinX = 0m
  24. **.mobility.constraintAreaMinY = 0m
  25. **.mobility.constraintAreaMaxX = 1000m
  26. **.mobility.constraintAreaMaxY = 1000m
  27. **.mobility.constraintAreaMaxZ = 0m
  28. **.mobility.initFromDisplayString = false
  29. **.mobility.initialZ = 0m
  30. *.host*.mobilityType = "StationaryMobility"
  31. # 802.11
  32. # TODO: this parameter shouldn't be here, but currently 802.11g mode uses slowest
  33. # mandatory mode (1Mbps) for ACK frames, and fastest mode (54Mbps) for data frames
  34. # the end result is that ACK frames take much time on the medium than the ping
  35. # request/ping reply frames.
  36. **.opMode = "a"
  37. # ping app
  38. *.host[0].numPingApps = 1
  39. *.host[*].numPingApps = 1
  40. *.host[*].pingApp[0].destAddr = "host[0]"
  41. *.host[*].pingApp[0].printPing = true