A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
dsr-main-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Yufei Cheng
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Yufei Cheng <yfcheng@ittc.ku.edu>
18
*
19
* James P.G. Sterbenz <jpgs@ittc.ku.edu>, director
20
* ResiliNets Research Group https://resilinets.org/
21
* Information and Telecommunication Technology Center (ITTC)
22
* and Department of Electrical Engineering and Computer Science
23
* The University of Kansas Lawrence, KS USA.
24
*
25
* Work supported in part by NSF FIND (Future Internet Design) Program
26
* under grant CNS-0626918 (Postmodern Internet Architecture),
27
* NSF grant CNS-1050226 (Multilayer Network Resilience Analysis and Experimentation on GENI),
28
* US Department of Defense (DoD), and ITTC at The University of Kansas.
29
*/
30
31
#ifndef DSR_MAIN_HELPER_H
32
#define DSR_MAIN_HELPER_H
33
34
#include "
dsr-helper.h
"
35
36
#include "ns3/dsr-routing.h"
37
#include "ns3/node-container.h"
38
#include "ns3/node.h"
39
#include "ns3/object-factory.h"
40
41
namespace
ns3
42
{
43
44
/**
45
* \ingroup dsr
46
*
47
* \brief Helper class that adds DSR routing to nodes.
48
*/
49
class
DsrMainHelper
50
{
51
public
:
52
/**
53
* Create an DsrMainHelper that makes life easier for people who want to install
54
* DSR routing to nodes.
55
*/
56
DsrMainHelper
();
57
~DsrMainHelper
();
58
/**
59
* \brief Construct an DsrMainHelper from another previously initialized instance
60
* (Copy Constructor).
61
* \param o object to copy from
62
*/
63
DsrMainHelper
(
const
DsrMainHelper
& o);
64
/**
65
* Install routing to the nodes
66
* \param dsrHelper The DSR helper class
67
* \param nodes the collection of nodes
68
*/
69
void
Install
(
DsrHelper
& dsrHelper,
NodeContainer
nodes
);
70
/**
71
* Set the helper class
72
* \param dsrHelper the DSR helper class
73
*/
74
void
SetDsrHelper
(
DsrHelper
& dsrHelper);
75
76
private
:
77
/**
78
* Install routing to a node
79
* \param node the node to install DSR routing
80
*/
81
void
Install
(
Ptr<Node>
node);
82
/**
83
* \brief Assignment operator declared private and not implemented to disallow
84
* assignment and prevent the compiler from happily inserting its own.
85
* \param o source object to assign
86
* \return DsrHelper object
87
*/
88
DsrMainHelper
&
operator=
(
const
DsrMainHelper
& o);
89
const
DsrHelper
*
m_dsrHelper
;
///< helper class
90
};
91
92
}
// namespace ns3
93
94
#endif
/* DSR_MAIN_HELPER_H */
ns3::DsrHelper
DSR helper class to manage creation of DSR routing instance and to insert it on a node as a sublayer ...
Definition:
dsr-helper.h:53
ns3::DsrMainHelper
Helper class that adds DSR routing to nodes.
Definition:
dsr-main-helper.h:50
ns3::DsrMainHelper::operator=
DsrMainHelper & operator=(const DsrMainHelper &o)
Assignment operator declared private and not implemented to disallow assignment and prevent the compi...
Definition:
dsr-main-helper.cc:68
ns3::DsrMainHelper::m_dsrHelper
const DsrHelper * m_dsrHelper
helper class
Definition:
dsr-main-helper.h:89
ns3::DsrMainHelper::Install
void Install(DsrHelper &dsrHelper, NodeContainer nodes)
Install routing to the nodes.
Definition:
dsr-main-helper.cc:79
ns3::DsrMainHelper::SetDsrHelper
void SetDsrHelper(DsrHelper &dsrHelper)
Set the helper class.
Definition:
dsr-main-helper.cc:105
ns3::DsrMainHelper::DsrMainHelper
DsrMainHelper()
Create an DsrMainHelper that makes life easier for people who want to install DSR routing to nodes.
Definition:
dsr-main-helper.cc:49
ns3::DsrMainHelper::~DsrMainHelper
~DsrMainHelper()
Definition:
dsr-main-helper.cc:61
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:40
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
dsr-helper.h
nodes
NodeContainer nodes
Definition:
lr-wpan-bootstrap.cc:54
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
dsr
helper
dsr-main-helper.h
Generated on Tue May 28 2024 23:35:00 for ns-3 by
1.9.6