network-hub.ned 976 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package inet.tests.ethernet;
  2. import inet.linklayer.ethernet.EtherHub;
  3. import inet.node.ethernet.EtherHost2;
  4. import inet.common.scenario.ScenarioManager;
  5. import ned.DatarateChannel;
  6. network HostsWithHub
  7. {
  8. submodules:
  9. hostA: EtherHost2 {
  10. parameters:
  11. @display("p=80,200");
  12. }
  13. hostB: EtherHost2 {
  14. parameters:
  15. @display("p=200,200");
  16. }
  17. hostC: EtherHost2 {
  18. parameters:
  19. @display("p=320,200");
  20. }
  21. hub: EtherHub {
  22. parameters:
  23. @display("p=200,80");
  24. }
  25. scenarioManager: ScenarioManager {
  26. parameters:
  27. script = default(xml("<empty/>"));
  28. @display("p=80,40");
  29. }
  30. connections:
  31. hub.ethg++ <--> DatarateChannel <--> hostA.ethg;
  32. hub.ethg++ <--> DatarateChannel <--> hostB.ethg;
  33. hub.ethg++ <--> DatarateChannel <--> hostC.ethg;
  34. }