OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2013 Mohammed J.F. Alenazi |
| 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: Mohammed J.F. Alenazi <malenazi@ittc.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 by King Saud University and |
| 27 * the ITTC at The University of Kansas. |
| 28 */ |
| 29 |
| 30 #ifndef EPIDEMIC_HELPER_H |
| 31 #define EPIDEMIC_HELPER_H |
| 32 |
| 33 #include "ns3/object-factory.h" |
| 34 #include "ns3/node.h" |
| 35 #include "ns3/node-container.h" |
| 36 #include "ns3/ipv4-routing-helper.h" |
| 37 |
| 38 /** |
| 39 * \file |
| 40 * \ingroup epidemic |
| 41 * ns3::EpidemicHelper declaration. |
| 42 */ |
| 43 |
| 44 |
| 45 namespace ns3 { |
| 46 |
| 47 /** |
| 48 * \ingroup epidemic |
| 49 * \brief Helper class that adds Epidemic routing to nodes. |
| 50 */ |
| 51 class EpidemicHelper : public Ipv4RoutingHelper |
| 52 { |
| 53 public: |
| 54 /** Constructor */ |
| 55 EpidemicHelper (); |
| 56 /** Destructor */ |
| 57 ~EpidemicHelper (); |
| 58 // Inherited |
| 59 EpidemicHelper* Copy (void) const; |
| 60 virtual Ptr<Ipv4RoutingProtocol> Create (Ptr<Node> node) const; |
| 61 /** |
| 62 * Set attributes by name. |
| 63 * \param name the name of the attribute to set |
| 64 * \param value the value of the attribute to set. |
| 65 * |
| 66 * This method controls the attributes of "ns3::Epidemic::RoutingProtocol" |
| 67 */ |
| 68 void Set (std::string name, const AttributeValue &value); |
| 69 |
| 70 private: |
| 71 /** The factory to create Epidemic routing object */ |
| 72 ObjectFactory m_agentFactory; |
| 73 }; |
| 74 |
| 75 } //end namespace ns3 |
| 76 |
| 77 #endif /* EPIDEMIC_HELPER_H */ |
OLD | NEW |