MoBANNetwork.ned 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //***************************************************************************
  2. //* file: BaseMoBANNetwork.ned
  3. //*
  4. //* author: Majid Nabi <m.nabi@tue.nl>
  5. //*
  6. //* http://www.es.ele.tue.nl/nes
  7. //*
  8. //*
  9. //* copyright: (C) 2010 Electronic Systems group(ES),
  10. //* Eindhoven University of Technology (TU/e), the Netherlands.
  11. //*
  12. //*
  13. //* This program is free software; you can redistribute it
  14. //* and/or modify it under the terms of the GNU General Public
  15. //* License as published by the Free Software Foundation; either
  16. //* version 2 of the License, or (at your option) any later
  17. //* version.
  18. //* For further information see file COPYING
  19. //* in the top level directory
  20. //***************************************************************************
  21. //* part of: MoBAN (Mobility Model for wireless Body Area Networks)
  22. //* description: The base network for running simulation examples of using the MoBAN mobility model.
  23. //***************************************************************************
  24. //* Citation of the following publication is appreciated if you use MoBAN for
  25. //* a publication of your own.
  26. //*
  27. //* M. Nabi, M. Geilen, T. Basten. MoBAN: A Configurable Mobility Model for Wireless Body Area Networks.
  28. //* In Proc. of the 4th Int'l Conf. on Simulation Tools and Techniques, SIMUTools 2011, Barcelona, Spain, 2011.
  29. //*
  30. //* BibTeX:
  31. //* @inproceedings{MoBAN,
  32. //* author = "M. Nabi and M. Geilen and T. Basten.",
  33. //* title = "{MoBAN}: A Configurable Mobility Model for Wireless Body Area Networks.",
  34. //* booktitle = "Proceedings of the 4th Int'l Conf. on Simulation Tools and Techniques.",
  35. //* series = {SIMUTools '11},
  36. //* isbn = {978-963-9799-41-7},
  37. //* year = {2011},
  38. //* location = {Barcelona, Spain},
  39. //* publisher = {ICST} }
  40. //*
  41. //**************************************************************************/
  42. package inet.examples.mobility;
  43. import inet.mobility.group.MoBANCoordinator;
  44. //
  45. // This network is exactly the same as baseNetwork existing among the examples of MiXiM, but the desired number of MoBAN coordinator modules have been added.
  46. // Some nodes of type BaseNode use MoBANLocal module as their mobility module. Then those nodes will be considered as WBAN nodes.
  47. // Those node have a parameter named "coordinatorIndex" that determines to which WBAN (coordinator) the node belongs.
  48. //
  49. network MoBANNetwork
  50. {
  51. parameters:
  52. double numNodes; // total number of nodes in the network, either ordinary nodes or WBAN nodes
  53. int numMoBAN; // total number of MoBAN coordinators (WBAN instances)
  54. @display("bgb=1000,1000,white;bgp=0,0");
  55. submodules:
  56. node[numNodes]: MobileHost {
  57. parameters:
  58. @display("b=8,8,oval,red,,");
  59. }
  60. coordinator[numMoBAN]: MoBANCoordinator {
  61. parameters:
  62. @display("i=block/wheelbarrow");
  63. }
  64. }