A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
dsdv-helper.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 Hemanth Narra
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
* Authors: Hemanth Narra <hemanth@ittc.ku.com>, written after OlsrHelper by Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
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 DSDV_HELPER_H
33
#define DSDV_HELPER_H
34
35
#include "ns3/object-factory.h"
36
#include "ns3/node.h"
37
#include "ns3/node-container.h"
38
#include "ns3/ipv4-routing-helper.h"
39
40
namespace
ns3
{
45
class
DsdvHelper
:
public
Ipv4RoutingHelper
46
{
47
public
:
48
DsdvHelper
();
49
~DsdvHelper
();
56
DsdvHelper
*
Copy
(
void
)
const
;
57
65
virtual
Ptr<Ipv4RoutingProtocol>
Create
(
Ptr<Node>
node)
const
;
72
void
Set
(std::string name,
const
AttributeValue
&value);
73
74
private
:
75
ObjectFactory
m_agentFactory
;
76
};
77
78
}
79
80
#endif
/* DSDV_HELPER_H */
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:69
ns3::DsdvHelper
Helper class that adds DSDV routing to nodes.
Definition:
dsdv-helper.h:46
ns3::DsdvHelper::m_agentFactory
ObjectFactory m_agentFactory
Object factory.
Definition:
dsdv-helper.h:75
ns3::DsdvHelper::DsdvHelper
DsdvHelper()
Definition:
dsdv-helper.cc:42
ns3::DsdvHelper::Create
virtual Ptr< Ipv4RoutingProtocol > Create(Ptr< Node > node) const
Definition:
dsdv-helper.cc:54
ns3::DsdvHelper::~DsdvHelper
~DsdvHelper()
Definition:
dsdv-helper.cc:38
ns3::DsdvHelper::Copy
DsdvHelper * Copy(void) const
Definition:
dsdv-helper.cc:48
ns3::DsdvHelper::Set
void Set(std::string name, const AttributeValue &value)
Definition:
dsdv-helper.cc:62
ns3::Ipv4RoutingHelper
a factory to create ns3::Ipv4RoutingProtocol objects
Definition:
ipv4-routing-helper.h:46
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition:
object-factory.h:48
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:74
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
dsdv
helper
dsdv-helper.h
Generated on Tue Feb 6 2024 19:21:17 for ns-3 by
1.9.1