A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::AodvHelper Class Reference

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

#include <aodv-helper.h>

+ Inheritance diagram for ns3::AodvHelper:

Public Member Functions

int64_t AssignStreams (NodeContainer c, int64_t stream)
 
AodvHelperCopy (void) const
 
virtual Ptr< Ipv4RoutingProtocolCreate (Ptr< Node > node) const
 
void Set (std::string name, const AttributeValue &value)
 
- Public Member Functions inherited from ns3::Ipv4RoutingHelper
void PrintRoutingTableAllAt (Time printTime, Ptr< OutputStreamWrapper > stream) const
 prints the routing tables of all nodes at a particular time. More...
 
void PrintRoutingTableAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream) const
 prints the routing tables of all nodes at regular intervals specified by user. More...
 
void PrintRoutingTableAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const
 prints the routing tables of a node at a particular time. More...
 
void PrintRoutingTableEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const
 prints the routing tables of a node at regular intervals specified by user. More...
 

Private Attributes

ObjectFactory m_agentFactory
 

Detailed Description

Helper class that adds AODV routing to nodes.

Definition at line 35 of file aodv-helper.h.

Member Function Documentation

int64_t ns3::AodvHelper::AssignStreams ( NodeContainer  c,
int64_t  stream 
)

Assign a fixed random variable stream number to the random variables used by this model. Return the number of streams (possibly zero) that have been assigned. The Install() method of the InternetStackHelper should have previously been called by the user.

Parameters
streamfirst stream index to use
cNodeContainer of the set of nodes for which AODV should be modified to use a fixed stream
Returns
the number of stream indices assigned by this helper

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

References ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), ns3::Object::GetObject(), and NS_ASSERT_MSG.

Referenced by ns3::aodv::Bug772ChainTest::CreateDevices(), and ns3::aodv::ChainRegressionTest::CreateDevices().

AodvHelper * ns3::AodvHelper::Copy ( void  ) const
virtual
Returns
pointer to clone of this OlsrHelper

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 37 of file aodv-helper.cc.

Ptr< Ipv4RoutingProtocol > ns3::AodvHelper::Create ( Ptr< Node node) const
virtual
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

TODO: support installing AODV on the subset of all available IP interfaces

Implements ns3::Ipv4RoutingHelper.

Definition at line 43 of file aodv-helper.cc.

References ns3::Object::AggregateObject().

void ns3::AodvHelper::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::aodv::RoutingProtocol

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


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