DSR helper class to manage creation of DSR routing instance and to insert it on a node as a sublayer between transport and IP layers. More...
#include "dsr-helper.h"
Public Member Functions | |
DsrHelper () | |
Create an DsrHelper that makes life easier for people who want to install Dsr routing to nodes. More... | |
DsrHelper (const DsrHelper &o) | |
Construct an DsrHelper from another previously initialized instance (Copy Constructor). More... | |
~DsrHelper () | |
DsrHelper * | Copy () const |
Ptr< ns3::dsr::DsrRouting > | Create (Ptr< Node > node) const |
DsrHelper & | operator= (const DsrHelper &)=delete |
void | Set (std::string name, const AttributeValue &value) |
Set attribute values for future instances of DSR that this helper creates. More... | |
Private Attributes | |
ObjectFactory | m_agentFactory |
DSR factory. More... | |
DSR helper class to manage creation of DSR routing instance and to insert it on a node as a sublayer between transport and IP layers.
Definition at line 52 of file dsr-helper.h.
ns3::DsrHelper::DsrHelper | ( | ) |
Create an DsrHelper that makes life easier for people who want to install Dsr routing to nodes.
Definition at line 51 of file dsr-helper.cc.
References m_agentFactory, NS_LOG_FUNCTION, and ns3::ObjectFactory::SetTypeId().
Referenced by Copy().
ns3::DsrHelper::~DsrHelper | ( | ) |
Definition at line 63 of file dsr-helper.cc.
References NS_LOG_FUNCTION.
ns3::DsrHelper::DsrHelper | ( | const DsrHelper & | o | ) |
Construct an DsrHelper from another previously initialized instance (Copy Constructor).
o | object to copy from |
Definition at line 57 of file dsr-helper.cc.
References NS_LOG_FUNCTION.
DsrHelper * ns3::DsrHelper::Copy | ( | ) | const |
This method is mainly for internal use by the other helpers; clients are expected to free the dynamic memory allocated by this method
Definition at line 69 of file dsr-helper.cc.
References DsrHelper(), and NS_LOG_FUNCTION.
Referenced by ns3::DsrMainHelper::DsrMainHelper(), ns3::DsrMainHelper::Install(), ns3::DsrMainHelper::operator=(), and ns3::DsrMainHelper::SetDsrHelper().
Ptr< ns3::dsr::DsrRouting > ns3::DsrHelper::Create | ( | Ptr< Node > | node | ) | const |
node | the node on which the routing protocol will run |
Definition at line 76 of file dsr-helper.cc.
References ns3::Object::AggregateObject(), ns3::ObjectFactory::Create(), ns3::Object::GetObject(), m_agentFactory, ns3::MakeCallback(), NS_LOG_FUNCTION, and ns3::dsr::DsrRouting::Send().
Referenced by ns3::DsrMainHelper::Install().
void ns3::DsrHelper::Set | ( | std::string | name, |
const AttributeValue & | value | ||
) |
Set attribute values for future instances of DSR that this helper creates.
name | the node on which the routing protocol will run |
value | newly-created L4 protocol |
Definition at line 93 of file dsr-helper.cc.
References m_agentFactory, and ns3::ObjectFactory::Set().
|
private |
DSR factory.
Definition at line 91 of file dsr-helper.h.
Referenced by DsrHelper(), Create(), and Set().