A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dsr-helper.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2011 Yufei Cheng
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: Yufei Cheng <yfcheng@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 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 Experimentation on GENI),
29  * US Department of Defense (DoD), and ITTC at The University of Kansas.
30  */
31 
32 #ifndef DSR_HELPER_H
33 #define DSR_HELPER_H
34 
35 #include "ns3/node-container.h"
36 #include "ns3/object-factory.h"
37 #include "ns3/dsr-routing.h"
38 #include "ns3/node.h"
39 #include "ns3/udp-l4-protocol.h"
40 #include "ns3/tcp-l4-protocol.h"
41 #include "ns3/icmpv4-l4-protocol.h"
42 
43 namespace ns3 {
44 class DsrHelper
45 {
46 public:
51  DsrHelper ();
52  ~DsrHelper ();
57  DsrHelper (const DsrHelper &);
65  DsrHelper* Copy (void) const;
71  void Set (std::string name, const AttributeValue &value);
72 private:
78  DsrHelper & operator = (const DsrHelper &o);
81 };
82 
83 } // namespace ns3
84 
85 #endif // DSR_HELPER_H
smart pointer class similar to boost::intrusive_ptr
Definition: ptr.h:60
Hold a value for an Attribute.
Definition: attribute.h:56
void Set(std::string name, const AttributeValue &value)
Definition: dsr-helper.cc:92
DsrHelper()
Create an DsrHelper that makes life easier for people who want to install Dsr routing to nodes...
Definition: dsr-helper.cc:50
Ptr< ns3::dsr::DsrRouting > Create(Ptr< Node > node) const
Definition: dsr-helper.cc:75
NodeContainer m_nodes
Definition: dsr-helper.h:80
keep track of a set of node pointers.
DsrHelper * Copy(void) const
Definition: dsr-helper.cc:68
instantiate subclasses of ns3::Object.
DsrHelper & operator=(const DsrHelper &o)
Assignment operator declared private and not implemented to disallow assignment and prevent the compi...
ObjectFactory m_agentFactory
Definition: dsr-helper.h:79