omnetpp.ini 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. [General]
  2. #scheduler-class = "inet::cRealTimeScheduler" #so that speed appears realistic
  3. #debug-on-errors = true
  4. tkenv-plugin-path = ../../../etc/plugins
  5. sim-time-limit = 10day
  6. *.numHosts = 2
  7. **.constraintAreaMinX = 0m
  8. **.constraintAreaMinY = 0m
  9. **.constraintAreaMinZ = 0m
  10. **.constraintAreaMaxX = 600m
  11. **.constraintAreaMaxY = 400m
  12. **.constraintAreaMaxZ = 0m
  13. **.updateInterval = 0.1s # test with 0s too, and let getCurrentPosition update the display string from a test module
  14. **.mobility.initFromDisplayString = false
  15. [Config ANSimMobility]
  16. network = MobileNetwork
  17. **.host*.mobilityType = "ANSimMobility"
  18. **.host*.mobility.ansimTrace = xmldoc("ansimtrace.xml")
  19. **.host*.mobility.nodeId = -1 #means "host module's index"
  20. [Config BonnMotionMobility1]
  21. network = MobileNetwork
  22. description = "2 hosts"
  23. **.host*.mobilityType = "BonnMotionMobility"
  24. **.host*.mobility.traceFile = "bonnmotion_small.movements"
  25. **.host*.mobility.nodeId = -1 #means "host module's index"
  26. [Config BonnMotionMobility2]
  27. network = MobileNetwork
  28. description = "100 hosts"
  29. *.numHosts = 100
  30. **.host*.mobilityType = "BonnMotionMobility"
  31. **.host*.mobility.traceFile = "bonnmotion_scenario.movements"
  32. **.host*.mobility.nodeId = -1 #means "host module's index"
  33. [Config ChiangMobility]
  34. network = MobileNetwork
  35. *.numHosts = 1
  36. **.host*.mobilityType = "ChiangMobility"
  37. **.host*.mobility.stateTransitionUpdateInterval = 3s
  38. **.host*.mobility.speed = 10mps
  39. [Config CircleMobility1]
  40. network = MobileNetwork
  41. *.numHosts = 3
  42. **.host*.mobilityType = "CircleMobility"
  43. **.host*.mobility.cx = 200m
  44. **.host*.mobility.cy = 200m
  45. **.host*.mobility.r = 150m
  46. **.host*.mobility.speed = 40mps
  47. **.host[0].mobility.startAngle = 0deg
  48. **.host[1].mobility.startAngle = 120deg
  49. **.host[2].mobility.startAngle = 240deg
  50. [Config CircleMobility2]
  51. network = MobileNetwork
  52. *.numHosts = 3
  53. **.host*.mobilityType = "CircleMobility"
  54. **.host[0].mobility.cx = 100m
  55. **.host[1].mobility.cx = 300m
  56. **.host[2].mobility.cx = 500m
  57. **.host*.mobility.cy = 200m
  58. **.host*.mobility.r = 150m
  59. **.host*.mobility.speed = 40mps
  60. **.host*.mobility.startAngle = 0deg
  61. [Config ConstSpeedMobility]
  62. network = MobileNetwork
  63. **.host*.mobilityType = "ConstSpeedMobility"
  64. **.host*.mobility.initFromDisplayString = false
  65. **.host*.mobility.speed = 50mps
  66. [Config ConstSpeedMobility01]
  67. extends = ConstSpeedMobility
  68. **.updateInterval = 0.1s
  69. [Config ConstSpeedMobility1]
  70. extends = ConstSpeedMobility
  71. **.updateInterval = 1s
  72. [Config ConstSpeedMobility10]
  73. extends = ConstSpeedMobility
  74. **.updateInterval = 10s
  75. [Config ConstSpeedMobility100]
  76. extends = ConstSpeedMobility
  77. **.updateInterval = 100s
  78. [Config ConstSpeedMobility1000]
  79. extends = ConstSpeedMobility
  80. **.updateInterval = 1000s
  81. [Config GaussMarkovMobility]
  82. network = MobileNetwork
  83. *.numHosts = 1
  84. **.host*.mobilityType = "GaussMarkovMobility"
  85. **.host*.mobility.alpha = 0.9
  86. **.host*.mobility.speed = 10mps
  87. **.host*.mobility.angle = 0deg
  88. **.host*.mobility.variance = 40
  89. **.host*.mobility.margin = 30m
  90. [Config LinearMobility]
  91. network = MobileNetwork
  92. **.host*.mobilityType = "LinearMobility"
  93. **.host*.mobility.initFromDisplayString = false
  94. **.host*.mobility.speed = 50mps
  95. **.host*.mobility.angle = 30deg # degrees
  96. #**.host*.mobility.acceleration = -0.5
  97. [Config LinearMobility01]
  98. extends = LinearMobility
  99. **.updateInterval = 0.1s
  100. [Config LinearMobility1]
  101. extends = LinearMobility
  102. **.updateInterval = 1s
  103. [Config LinearMobility10]
  104. extends = LinearMobility
  105. **.updateInterval = 10s
  106. [Config LinearMobility100]
  107. extends = LinearMobility
  108. **.updateInterval = 100s
  109. [Config LinearMobility1000]
  110. extends = LinearMobility
  111. **.updateInterval = 1000s
  112. [Config LinearMobility_accdown]
  113. extends = LinearMobility
  114. **.updateInterval = 0.1s
  115. **.host*.mobility.acceleration = -1.0 # m/s2
  116. [Config LinearMobility_accup]
  117. extends = LinearMobility
  118. **.updateInterval = 0.1s
  119. **.host*.mobility.speed = 0mps
  120. **.host*.mobility.acceleration = 1.0 # m/s2
  121. [Config MassMobility]
  122. network = MobileNetwork
  123. *.numHosts = 5
  124. **.host*.mobilityType = "MassMobility"
  125. **.host*.mobility.initFromDisplayString = false
  126. **.host*.mobility.changeInterval = truncnormal(2s, 0.5s)
  127. **.host*.mobility.changeAngleBy = normal(0deg, 30deg)
  128. **.host*.mobility.speed = truncnormal(15mps, 5mps)
  129. [Config MassMobilityWithScenario]
  130. network = MobileNetworkWithScenario
  131. *.numHosts = 5
  132. **.host*.mobilityType = "MassMobility"
  133. **.host*.mobility.initFromDisplayString = false
  134. **.host*.mobility.changeInterval = truncnormal(2s, 0.5s)
  135. **.host*.mobility.changeAngleBy = normal(0deg, 30deg)
  136. **.host*.mobility.speed = truncnormal(15mps, 5mps)
  137. **.scenarioManager.script = xmldoc("scenario.xml")
  138. [Config MoBANMobility1]
  139. network = MoBANNetwork
  140. **.constraintAreaMaxX = 1000m
  141. **.constraintAreaMaxY = 1000m
  142. **.constraintAreaMaxZ = 1000m
  143. **.numNodes = 12
  144. **.numMoBAN = 1
  145. **.coordinator[*].postureSpecFile = xmldoc("postures1.xml")
  146. **.coordinator[*].configFile = xmldoc("configMoBAN1.xml")
  147. **.coordinator[*].useMobilityPattern = false
  148. **.coordinator[0].mobilityPatternFile = "MoBAN_Pattern_in0.txt"
  149. **.node[*].mobilityType = "MoBANLocal"
  150. **.node[*].mobility.coordinatorIndex = 0
  151. [Config MoBANMobility2]
  152. network = MoBANNetwork
  153. **.constraintAreaMaxX = 1000m
  154. **.constraintAreaMaxY = 1000m
  155. **.constraintAreaMaxZ = 1000m
  156. **.numNodes = 24
  157. **.numMoBAN = 2
  158. **.coordinator[*].postureSpecFile = xmldoc("postures1.xml")
  159. **.coordinator[*].configFile = xmldoc("configMoBAN2.xml")
  160. **.coordinator[*].useMobilityPattern = false
  161. **.coordinator[*].mobilityPatternFile = ""
  162. **.node[*].mobilityType = "MoBANLocal"
  163. **.node[0..11].mobility.coordinatorIndex = 0
  164. **.node[12..23].mobility.coordinatorIndex = 1
  165. [Config RandomWPMobility]
  166. network = MobileNetwork
  167. *.numHosts = 5
  168. **.host*.mobilityType = "RandomWPMobility"
  169. **.host*.mobility.initFromDisplayString = false
  170. **.host[0].mobility.speed = 10*uniform(20mps,50mps)
  171. **.host*.mobility.speed = uniform(20mps,50mps)
  172. **.host*.mobility.waitTime = uniform(3s,8s)
  173. [Config RectangleMobility]
  174. network = MobileNetwork
  175. **.host*.mobilityType = "RectangleMobility"
  176. **.host*.mobility.constraintAreaMinX = 100m
  177. **.host*.mobility.constraintAreaMinY = 100m
  178. **.host*.mobility.constraintAreaMaxX = 500m
  179. **.host*.mobility.constraintAreaMaxY = 300m
  180. #**.host*.mobility.x1 = 100
  181. #**.host*.mobility.y1 = 100
  182. #**.host*.mobility.x2 = 500
  183. #**.host*.mobility.y2 = 300
  184. **.host[0].mobility.startPos = 0
  185. **.host[1].mobility.startPos = 2.5
  186. **.host[0].mobility.speed = 20mps
  187. **.host[1].mobility.speed = -10mps
  188. [Config StaticGridMobility]
  189. network = MobileNetwork
  190. *.numHosts = 20
  191. **.host*.mobilityType = "StaticGridMobility"
  192. **.host*.mobility.marginX = 100m
  193. **.host*.mobility.marginY = 100m
  194. **.host*.mobility.numHosts = 20
  195. [Config StationaryMobility]
  196. network = MobileNetwork
  197. *.numHosts = 3
  198. **.host*.mobilityType = "StationaryMobility"
  199. # place it at a fixed position:
  200. **.host[0].mobility.initialX = 50m
  201. **.host[0].mobility.initialY = 200m
  202. **.host[0].mobility.initFromDisplayString = false
  203. # the second node is using the display string position (or placed randomly if position is not present in display string)
  204. **.host[1].mobility.initFromDisplayString = true
  205. # place it at a random position:
  206. **.host[2].mobility.initFromDisplayString = false
  207. [Config TractorMobility]
  208. network = MobileNetwork
  209. *.numHosts = 1
  210. **.host*.mobilityType = "TractorMobility"
  211. **.host*.mobility.x1 = 100m
  212. **.host*.mobility.y1 = 100m
  213. **.host*.mobility.x2 = 500m
  214. **.host*.mobility.y2 = 300m
  215. **.host*.mobility.rowCount = 4
  216. **.host*.mobility.speed = 50mps
  217. [Config TurtleMobility1]
  218. network = MobileNetwork
  219. description = "square"
  220. *.numHosts = 1
  221. **.host*.mobilityType = "TurtleMobility"
  222. **.host*.mobility.turtleScript = xmldoc("turtle.xml", "movements//movement[@id='1']")
  223. [Config TurtleMobility2]
  224. network = MobileNetwork
  225. description = "two squares"
  226. *.numHosts = 1
  227. **.host*.mobilityType = "TurtleMobility"
  228. **.host*.mobility.turtleScript = xmldoc("turtle.xml", "movements//movement[@id='2']")
  229. [Config TurtleMobility3]
  230. network = MobileNetwork
  231. description = "random waypoint"
  232. *.numHosts = 2
  233. **.host*.mobilityType = "TurtleMobility"
  234. **.host*.mobility.turtleScript = xmldoc("turtle.xml", "movements//movement[@id='3']")
  235. [Config TurtleMobility4]
  236. network = MobileNetwork
  237. description = "mass+reflect"
  238. *.numHosts = 2
  239. **.host*.mobilityType = "TurtleMobility"
  240. **.host*.mobility.turtleScript = xmldoc("turtle.xml", "movements//movement[@id='4']")
  241. [Config TurtleMobility5]
  242. network = MobileNetwork
  243. description = "mass+wrap"
  244. *.numHosts = 2
  245. **.host*.mobilityType = "TurtleMobility"
  246. **.host*.mobility.turtleScript = xmldoc("turtle.xml", "movements//movement[@id='5']")
  247. [Config TurtleMobility6]
  248. network = MobileNetwork
  249. description = "mass+placerandomly"
  250. *.numHosts = 2
  251. **.host*.mobilityType = "TurtleMobility"
  252. **.host*.mobility.turtleScript = xmldoc("turtle.xml", "movements//movement[@id='6']")