OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2015 Amir Modarresi |
| 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: Amir Modarresi <amodarresi.ku.edu> |
| 19 * |
| 20 * James P.G. Sterbenz <jpgs@ittc.ku.edu>, director |
| 21 * ResiliNets Research Group http://wiki.ittc.ku.edu/resilinets |
| 22 * Information and Telecommunication Technology Center (ITTC) |
| 23 * and Department of Electrical Engineering and Computer Science |
| 24 * The University of Kansas Lawrence, KS USA. |
| 25 * |
| 26 * Work supported in part by NSF FIND (Future Internet Design) Program |
| 27 * under grant CNS-0626918 (Postmodern Internet Architecture), |
| 28 * NSF grant CNS-1050226 (Multilayer Network Resilience Analysis and Experimenta
tion on GENI), |
| 29 * US Department of Defense (DoD), and ITTC at The University of Kansas. |
| 30 */ |
| 31 |
| 32 #ifndef SIFT_MAIN_HELPER_H |
| 33 #define SIFT_MAIN_HELPER_H |
| 34 |
| 35 #include "ns3/object-factory.h" |
| 36 #include "ns3/node.h" |
| 37 #include "ns3/node-container.h" |
| 38 #include "ns3/sift-routing.h" |
| 39 #include "ns3/sift-helper.h" |
| 40 |
| 41 namespace ns3 { |
| 42 /** |
| 43 * \brief Helper class that adds Sift routing to nodes. |
| 44 */ |
| 45 class SiftMainHelper |
| 46 { |
| 47 public: |
| 48 /** |
| 49 * Create an SiftMainHelper that makes life easier for people who want to inst
all |
| 50 * Sift routing to nodes. |
| 51 */ |
| 52 SiftMainHelper (); |
| 53 ~SiftMainHelper (); |
| 54 /** |
| 55 * \brief Construct a SiftMainHelper from another previously initialized insta
nce |
| 56 * (Copy Constructor). |
| 57 */ |
| 58 SiftMainHelper (const SiftMainHelper &); |
| 59 void Install (SiftHelper &siftHelper, NodeContainer nodes); |
| 60 void SetSiftHelper (SiftHelper &siftHelper); |
| 61 |
| 62 private: |
| 63 void Install (Ptr<Node> node); |
| 64 /** |
| 65 * \internal |
| 66 * \brief Assignment operator declared private and not implemented to disallow |
| 67 * assignment and prevent the compiler from happily inserting its own. |
| 68 */ |
| 69 SiftMainHelper &operator = (const SiftMainHelper &o); |
| 70 const SiftHelper *m_siftHelper; |
| 71 }; |
| 72 |
| 73 } // namespace ns3 |
| 74 |
| 75 #endif /* SIFT_MAIN_HELPER_H */ |
OLD | NEW |