A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
dsr-main-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_MAIN_HELPER_H
33
#define DSR_MAIN_HELPER_H
34
35
#include "ns3/object-factory.h"
36
#include "ns3/node.h"
37
#include "ns3/node-container.h"
38
#include "ns3/dsr-routing.h"
39
#include "ns3/dsr-helper.h"
40
41
namespace
ns3
{
42
48
class
DsrMainHelper
49
{
50
public
:
55
DsrMainHelper
();
56
~DsrMainHelper
();
62
DsrMainHelper
(
const
DsrMainHelper
&o);
68
void
Install
(
DsrHelper
&dsrHelper,
NodeContainer
nodes
);
73
void
SetDsrHelper
(
DsrHelper
&dsrHelper);
74
75
private
:
80
void
Install
(
Ptr<Node>
node);
87
DsrMainHelper
&
operator =
(
const
DsrMainHelper
&o);
88
const
DsrHelper
*
m_dsrHelper
;
89
};
90
91
}
// namespace ns3
92
93
#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:49
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:66
ns3::DsrMainHelper::m_dsrHelper
const DsrHelper * m_dsrHelper
helper class
Definition:
dsr-main-helper.h:88
ns3::DsrMainHelper::Install
void Install(DsrHelper &dsrHelper, NodeContainer nodes)
Install routing to the nodes.
Definition:
dsr-main-helper.cc:77
ns3::DsrMainHelper::SetDsrHelper
void SetDsrHelper(DsrHelper &dsrHelper)
Set the helper class.
Definition:
dsr-main-helper.cc:103
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:47
ns3::DsrMainHelper::~DsrMainHelper
~DsrMainHelper()
Definition:
dsr-main-helper.cc:59
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:39
ns3::Ptr< Node >
first.nodes
nodes
Definition:
first.py:32
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
dsr
helper
dsr-main-helper.h
Generated on Tue Feb 6 2024 19:21:17 for ns-3 by
1.9.1