Left: | ||
Right: |
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 the ITTC at The University of Kans as. | |
27 */ | |
28 | |
29 #ifndef EPIDEMIC_HELPER_H | |
30 #define EPIDEMIC_HELPER_H | |
31 | |
32 #include "ns3/object-factory.h" | |
33 #include "ns3/node.h" | |
34 #include "ns3/node-container.h" | |
35 #include "ns3/ipv4-routing-helper.h" | |
36 | |
37 namespace ns3 { | |
38 | |
39 /** | |
40 * \ingroup epidemic | |
41 * \brief Helper class that adds Epidemic routing to nodes. | |
42 */ | |
43 class EpidemicHelper : public Ipv4RoutingHelper | |
44 { | |
45 public: | |
46 /** Constructor */ | |
47 EpidemicHelper (); | |
48 /** Destructor */ | |
49 ~EpidemicHelper (); | |
50 /** | |
51 * \returns pointer to clone of this EpidemicHelper | |
52 * \internal | |
53 * | |
54 * This method is mainly for internal use by the other helpers; | |
55 * clients are expected to free the dynamic memory allocated by this method | |
56 */ | |
57 EpidemicHelper* Copy (void) const; | |
58 | |
59 /** | |
60 * Add an epidemic::RoutingProtocol object. | |
61 * \param the node on which the routing protocol will run. | |
Peter Barnes
2014/12/17 00:15:46
\param node The node
as you had before. (The fir
mjf.alenazi
2014/12/19 13:24:00
Done.
| |
62 * \returns a newly-created routing protocol | |
63 */ | |
64 virtual Ptr<Ipv4RoutingProtocol> Create (Ptr<Node> node) const; | |
65 /** | |
66 * \param name the name of the attribute to set | |
67 * \param value the value of the attribute to set. | |
68 * | |
69 * This method controls the attributes of ns3::epidemic::RoutingProtocol | |
70 */ | |
71 void Set (std::string name, const AttributeValue &value); | |
72 | |
73 private: | |
74 /** the factory to create Epidemic routing object */ | |
75 ObjectFactory m_agentFactory; | |
76 }; | |
77 | |
78 } //end namespace ns3 | |
79 | |
80 #endif /* EPIDEMIC_HELPER_H */ | |
OLD | NEW |