DYMONetwork.ned 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // This program is property of its copyright holder. All rights reserved.
  3. //
  4. package inet.examples.manetrouting.dymo;
  5. import inet.common.lifecycle.LifecycleController;
  6. import inet.common.scenario.ScenarioManager;
  7. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  8. import inet.networklayer.ipv4.RoutingTableRecorder;
  9. import inet.node.dymo.DYMORouter;
  10. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  11. //
  12. // TODO
  13. //
  14. network DYMONetwork
  15. {
  16. parameters:
  17. int numHosts;
  18. submodules:
  19. radioMedium: Ieee80211ScalarRadioMedium {
  20. parameters:
  21. @display("p=50,50");
  22. }
  23. configurator: IPv4NetworkConfigurator {
  24. parameters:
  25. config = xml("<config><interface hosts='*' address='145.236.x.x' netmask='255.255.0.0'/></config>");
  26. @display("p=50,100");
  27. }
  28. routingTableRecorder: RoutingTableRecorder {
  29. parameters:
  30. @display("p=50,150");
  31. }
  32. lifecycleController: LifecycleController {
  33. parameters:
  34. @display("p=50,200");
  35. }
  36. scenarioManager: ScenarioManager {
  37. parameters:
  38. script = default(xml("<scenario/>"));
  39. @display("p=50,250");
  40. }
  41. host[numHosts]: DYMORouter {
  42. parameters:
  43. @display("i=device/pocketpc_s;r=,,#707070");
  44. }
  45. connections allowunconnected:
  46. }