omnetpp.ini 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [General]
  2. tkenv-plugin-path = ../../../etc/plugins
  3. # mobility parameters
  4. *.*.mobility.constraintAreaMinX = 0m
  5. *.*.mobility.constraintAreaMinY = 0m
  6. *.*.mobility.constraintAreaMinZ = 0m
  7. *.*.mobility.constraintAreaMaxX = 1000m
  8. *.*.mobility.constraintAreaMaxY = 1000m
  9. *.*.mobility.constraintAreaMaxZ = 0m
  10. # application parameters
  11. *.source.numPingApps = 1
  12. *.source.pingApp[0].destAddr = "destination"
  13. [Config StaticNetworkRouteVisualization]
  14. network = StaticNetworkRouteVisualizationExample
  15. description = Demonstrates how to display static routes in a wired network
  16. # mobility parameters
  17. *.*.mobilityType = "StationaryMobility"
  18. *.node[*].mobility.initFromDisplayString = false
  19. *.node[0].mobility.initialX = 400m
  20. *.node[0].mobility.initialY = 800m
  21. *.node[1].mobility.initialX = 200m
  22. *.node[1].mobility.initialY = 600m
  23. *.node[2].mobility.initialX = 600m
  24. *.node[2].mobility.initialY = 700m
  25. *.node[3].mobility.initialX = 200m
  26. *.node[3].mobility.initialY = 400m
  27. *.node[4].mobility.initialX = 500m
  28. *.node[4].mobility.initialY = 500m
  29. *.node[5].mobility.initialX = 700m
  30. *.node[5].mobility.initialY = 200m
  31. *.node[6].mobility.initialX = 800m
  32. *.node[6].mobility.initialY = 500m
  33. *.node[7].mobility.initialX = 900m
  34. *.node[7].mobility.initialY = 300m
  35. # visualizer parameters
  36. *.visualizer.*.networkRouteVisualizer.packetFilter = "ping*" # enables route visualization for ping packets
  37. *.visualizer.*.networkRouteVisualizer.displayRoutes = true
  38. [Config DynamicNetworkRouteVisualization]
  39. network = DynamicNetworkRouteVisualizationExample
  40. description = Demonstrates how to display dynamically changing routes in a wireless mobile network
  41. # mobility parameters
  42. *.*.mobilityType = "MassMobility"
  43. *.*.mobility.speed = 5mps
  44. *.*.mobility.changeAngleBy = uniform(-45deg, 45deg)
  45. *.*.mobility.changeInterval = exponential(100s)
  46. # wlan parameters
  47. *.*.wlan[*].radio.transmitter.power = 10mW # reduces communication range to get a non-trivial path between source and destination
  48. # visualizer parameters
  49. *.visualizer.*.networkRouteVisualizer.packetFilter = "ping*" # enables route visualization for ping packets
  50. *.visualizer.*.networkRouteVisualizer.displayRoutes = true