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
dsdv-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2010 Hemanth Narra
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Authors: Hemanth Narra <hemanth@ittc.ku.com>, written after OlsrHelper by Mathieu Lacage
7
* <mathieu.lacage@sophia.inria.fr>
8
*
9
* James P.G. Sterbenz <jpgs@ittc.ku.edu>, director
10
* ResiliNets Research Group https://resilinets.org/
11
* Information and Telecommunication Technology Center (ITTC)
12
* and Department of Electrical Engineering and Computer Science
13
* The University of Kansas Lawrence, KS USA.
14
*
15
* Work supported in part by NSF FIND (Future Internet Design) Program
16
* under grant CNS-0626918 (Postmodern Internet Architecture),
17
* NSF grant CNS-1050226 (Multilayer Network Resilience Analysis and Experimentation on GENI),
18
* US Department of Defense (DoD), and ITTC at The University of Kansas.
19
*/
20
21
#ifndef DSDV_HELPER_H
22
#define DSDV_HELPER_H
23
24
#include "ns3/ipv4-routing-helper.h"
25
#include "ns3/node-container.h"
26
#include "ns3/node.h"
27
#include "ns3/object-factory.h"
28
29
namespace
ns3
30
{
31
/**
32
* @ingroup dsdv
33
* @brief Helper class that adds DSDV routing to nodes.
34
*/
35
class
DsdvHelper
:
public
Ipv4RoutingHelper
36
{
37
public
:
38
DsdvHelper
();
39
~DsdvHelper
()
override
;
40
/**
41
* @returns pointer to clone of this DsdvHelper
42
*
43
* This method is mainly for internal use by the other helpers;
44
* clients are expected to free the dynamic memory allocated by this method
45
*/
46
DsdvHelper
*
Copy
()
const override
;
47
48
/**
49
* @param node the node on which the routing protocol will run
50
* @returns a newly-created routing protocol
51
*
52
* This method will be called by ns3::InternetStackHelper::Install
53
*
54
*/
55
Ptr<Ipv4RoutingProtocol>
Create
(
Ptr<Node>
node)
const override
;
56
/**
57
* @param name the name of the attribute to set
58
* @param value the value of the attribute to set.
59
*
60
* This method controls the attributes of ns3::dsdv::RoutingProtocol
61
*/
62
void
Set
(std::string name,
const
AttributeValue
& value);
63
64
private
:
65
ObjectFactory
m_agentFactory
;
//!< Object factory
66
};
67
68
}
// namespace ns3
69
70
#endif
/* DSDV_HELPER_H */
ns3::AttributeValue
Hold a value for an Attribute.
Definition
attribute.h:59
ns3::DsdvHelper
Helper class that adds DSDV routing to nodes.
Definition
dsdv-helper.h:36
ns3::DsdvHelper::m_agentFactory
ObjectFactory m_agentFactory
Object factory.
Definition
dsdv-helper.h:65
ns3::DsdvHelper::DsdvHelper
DsdvHelper()
Definition
dsdv-helper.cc:33
ns3::DsdvHelper::Copy
DsdvHelper * Copy() const override
Definition
dsdv-helper.cc:40
ns3::DsdvHelper::Set
void Set(std::string name, const AttributeValue &value)
Definition
dsdv-helper.cc:54
ns3::DsdvHelper::~DsdvHelper
~DsdvHelper() override
Definition
dsdv-helper.cc:29
ns3::DsdvHelper::Create
Ptr< Ipv4RoutingProtocol > Create(Ptr< Node > node) const override
Definition
dsdv-helper.cc:46
ns3::Ipv4RoutingHelper
a factory to create ns3::Ipv4RoutingProtocol objects
Definition
ipv4-routing-helper.h:35
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition
object-factory.h:37
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
dsdv
helper
dsdv-helper.h
Generated on Tue Dec 10 2024 18:20:39 for ns-3 by
1.11.0