Advertisement
Guest User

nicfel_Pedestrian.ned

a guest
Feb 22nd, 2019
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. //
  2. // Copyright (C) 2008 Christoph Sommer <christoph.sommer@informatik.uni-erlangen.de>
  3. //
  4. // Documentation for these modules is at http://veins.car2x.org/
  5. //
  6. // This program is free software; you can redistribute it and/or modify
  7. // it under the terms of the GNU General Public License as published by
  8. // the Free Software Foundation; either version 2 of the License, or
  9. // (at your option) any later version.
  10. //
  11. // This program is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. // GNU General Public License for more details.
  15. //
  16. // You should have received a copy of the GNU General Public License
  17. // along with this program; if not, write to the Free Software
  18. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. //
  20.  
  21. package org.car2x.veins.nodes;
  22.  
  23. import org.car2x.veins.base.modules.*;
  24. import org.car2x.veins.modules.nic.Nic80211p;
  25.  
  26. module Pedestrian
  27. {
  28. parameters:
  29. string applType; //type of the application layer
  30. string nicType = default("Nic80211p"); // type of network interface card
  31. string veinsmobilityType = default("org.car2x.veins.modules.mobility.traci.TraCIMobility"); //type of the mobility module
  32. gates:
  33. input veinsradioIn; // gate for sendDirect
  34. submodules:
  35. appl: <applType> like org.car2x.veins.base.modules.IBaseApplLayer {
  36. parameters:
  37. @display("p=60,50");
  38. }
  39.  
  40. nic: <nicType> like org.car2x.veins.modules.nic.INic80211p {
  41. parameters:
  42. @display("p=60,166");
  43. }
  44.  
  45. veinsmobility: <veinsmobilityType> like org.car2x.veins.base.modules.IMobility {
  46. parameters:
  47. @display("p=130,172;i=block/cogwheel");
  48. }
  49.  
  50. connections:
  51. nic.upperLayerOut --> appl.lowerLayerIn;
  52. nic.upperLayerIn <-- appl.lowerLayerOut;
  53. nic.upperControlOut --> appl.lowerControlIn;
  54. nic.upperControlIn <-- appl.lowerControlOut;
  55.  
  56. veinsradioIn --> nic.radioIn;
  57.  
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement