OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2017 University of Padova |
| 4 * |
| 5 * This program is free software; you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 2 as |
| 7 * published by the Free Software Foundation; |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software |
| 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 * |
| 18 * Author: Davide Magrin <magrinda@dei.unipd.it> |
| 19 */ |
| 20 |
| 21 #ifndef LORA_HELPER_H |
| 22 #define LORA_HELPER_H |
| 23 |
| 24 #include "ns3/lora-phy-helper.h" |
| 25 #include "ns3/lora-mac-helper.h" |
| 26 #include "ns3/node-container.h" |
| 27 #include "ns3/net-device-container.h" |
| 28 #include "ns3/net-device.h" |
| 29 #include "ns3/lora-net-device.h" |
| 30 |
| 31 namespace ns3 { |
| 32 |
| 33 /** |
| 34 * Helps to create LoraNetDevice objects |
| 35 * |
| 36 * This class can help create a large set of similar LoraNetDevice objects and |
| 37 * configure a large set of their attributes during creation. |
| 38 */ |
| 39 class LoraHelper |
| 40 { |
| 41 public: |
| 42 virtual ~LoraHelper (); |
| 43 |
| 44 LoraHelper (); |
| 45 |
| 46 /** |
| 47 * Install LoraNetDevices on a list of nodes |
| 48 * |
| 49 * \param phy the PHY helper to create PHY objects |
| 50 * \param mac the MAC helper to create MAC objects |
| 51 * \param c the set of nodes on which a lora device must be created |
| 52 * \returns a device container which contains all the devices created by this |
| 53 * method. |
| 54 */ |
| 55 virtual NetDeviceContainer Install (const LoraPhyHelper &phyHelper, |
| 56 const LoraMacHelper &macHelper, |
| 57 NodeContainer c) const; |
| 58 |
| 59 /** |
| 60 * Install LoraNetDevice on a single node |
| 61 * |
| 62 * \param phy the PHY helper to create PHY objects |
| 63 * \param mac the MAC helper to create MAC objects |
| 64 * \param node the node on which a lora device must be created |
| 65 * \returns a device container which contains all the devices created by this |
| 66 * method. |
| 67 */ |
| 68 virtual NetDeviceContainer Install (const LoraPhyHelper &phyHelper, |
| 69 const LoraMacHelper &macHelper, |
| 70 Ptr<Node> node) const; |
| 71 }; |
| 72 |
| 73 } //namespace ns3 |
| 74 |
| 75 #endif /* LORA_HELPER_H */ |
OLD | NEW |