A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::DsdvHelper Class Reference

Helper class that adds DSDV routing to nodes. More...

#include "dsdv-helper.h"

+ Inheritance diagram for ns3::DsdvHelper:
+ Collaboration diagram for ns3::DsdvHelper:

Public Member Functions

 DsdvHelper ()
 
 ~DsdvHelper () override
 
DsdvHelperCopy () const override
 
Ptr< Ipv4RoutingProtocolCreate (Ptr< Node > node) const override
 
void Set (std::string name, const AttributeValue &value)
 
- Public Member Functions inherited from ns3::Ipv4RoutingHelper
virtual ~Ipv4RoutingHelper ()
 
virtual Ipv4RoutingHelperCopy () const =0
 virtual constructor
 
virtual Ptr< Ipv4RoutingProtocolCreate (Ptr< Node > node) const =0
 

Private Attributes

ObjectFactory m_agentFactory
 Object factory.
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::Ipv4RoutingHelper
template<class T >
static Ptr< T > GetRouting (Ptr< Ipv4RoutingProtocol > protocol)
 Request a specified routing protocol <T> from Ipv4RoutingProtocol protocol.
 
static void PrintNeighborCacheAllAt (Time printTime, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
 prints the neighbor cache of all nodes at a particular time.
 
static void PrintNeighborCacheAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
 prints the neighbor cache of all nodes at regular intervals specified by user.
 
static void PrintNeighborCacheAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
 prints the neighbor cache of a node at a particular time.
 
static void PrintNeighborCacheEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
 prints the neighbor cache of a node at regular intervals specified by user.
 
static void PrintRoutingTableAllAt (Time printTime, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
 prints the routing tables of all nodes at a particular time.
 
static void PrintRoutingTableAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
 prints the routing tables of all nodes at regular intervals specified by user.
 
static void PrintRoutingTableAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
 prints the routing tables of a node at a particular time.
 
static void PrintRoutingTableEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
 prints the routing tables of a node at regular intervals specified by user.
 

Detailed Description

Helper class that adds DSDV routing to nodes.

Definition at line 46 of file dsdv-helper.h.

Constructor & Destructor Documentation

◆ DsdvHelper()

ns3::DsdvHelper::DsdvHelper ( )

Definition at line 44 of file dsdv-helper.cc.

References m_agentFactory, and ns3::ObjectFactory::SetTypeId().

Referenced by Copy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~DsdvHelper()

ns3::DsdvHelper::~DsdvHelper ( )
override

Definition at line 40 of file dsdv-helper.cc.

Member Function Documentation

◆ Copy()

DsdvHelper * ns3::DsdvHelper::Copy ( ) const
overridevirtual
Returns
pointer to clone of this DsdvHelper

This method is mainly for internal use by the other helpers; clients are expected to free the dynamic memory allocated by this method

Implements ns3::Ipv4RoutingHelper.

Definition at line 51 of file dsdv-helper.cc.

References DsdvHelper().

+ Here is the call graph for this function:

◆ Create()

Ptr< Ipv4RoutingProtocol > ns3::DsdvHelper::Create ( Ptr< Node node) const
overridevirtual
Parameters
nodethe node on which the routing protocol will run
Returns
a newly-created routing protocol

This method will be called by ns3::InternetStackHelper::Install

Implements ns3::Ipv4RoutingHelper.

Definition at line 57 of file dsdv-helper.cc.

References ns3::ObjectFactory::Create(), and m_agentFactory.

+ Here is the call graph for this function:

◆ Set()

void ns3::DsdvHelper::Set ( std::string  name,
const AttributeValue value 
)
Parameters
namethe name of the attribute to set
valuethe value of the attribute to set.

This method controls the attributes of ns3::dsdv::RoutingProtocol

Definition at line 65 of file dsdv-helper.cc.

References m_agentFactory, and ns3::ObjectFactory::Set().

Referenced by DsdvManetExample::InstallInternetStack().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_agentFactory

ObjectFactory ns3::DsdvHelper::m_agentFactory
private

Object factory.

Definition at line 76 of file dsdv-helper.h.

Referenced by DsdvHelper(), Create(), and Set().


The documentation for this class was generated from the following files: