Helper class that adds OLSR routing to nodes. More...
#include <olsr-helper.h>
Public Member Functions | |
OlsrHelper () | |
void | SetAgent (std::string tid, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue()) |
Set default OLSR routing agent attributes. | |
void | Install (NodeContainer container) |
Enable OLSR routing for a set of nodes. | |
void | Install (Ptr< Node > node) |
Enable OLSR routing for a single node. | |
void | InstallAll (void) |
Enable OLSR routing for all nodes. | |
Private Attributes | |
ObjectFactory | m_agentFactory |
Helper class that adds OLSR routing to nodes.
Definition at line 32 of file olsr-helper.h.
ns3::OlsrHelper::OlsrHelper | ( | ) |
Definition at line 23 of file olsr-helper.cc.
References m_agentFactory, and ns3::ObjectFactory::SetTypeId().
Enable OLSR routing for a single node.
Definition at line 60 of file olsr-helper.cc.
void ns3::OlsrHelper::Install | ( | NodeContainer | container | ) |
Enable OLSR routing for a set of nodes.
Definition at line 51 of file olsr-helper.cc.
void ns3::OlsrHelper::InstallAll | ( | void | ) |
Enable OLSR routing for all nodes.
Definition at line 74 of file olsr-helper.cc.
void ns3::OlsrHelper::SetAgent | ( | std::string | tid, | |
std::string | n0 = "" , |
|||
const AttributeValue & | v0 = EmptyAttributeValue () , |
|||
std::string | n1 = "" , |
|||
const AttributeValue & | v1 = EmptyAttributeValue () , |
|||
std::string | n2 = "" , |
|||
const AttributeValue & | v2 = EmptyAttributeValue () , |
|||
std::string | n3 = "" , |
|||
const AttributeValue & | v3 = EmptyAttributeValue () , |
|||
std::string | n4 = "" , |
|||
const AttributeValue & | v4 = EmptyAttributeValue () , |
|||
std::string | n5 = "" , |
|||
const AttributeValue & | v5 = EmptyAttributeValue () , |
|||
std::string | n6 = "" , |
|||
const AttributeValue & | v6 = EmptyAttributeValue () , |
|||
std::string | n7 = "" , |
|||
const AttributeValue & | v7 = EmptyAttributeValue () | |||
) |
Set default OLSR routing agent attributes.
Definition at line 29 of file olsr-helper.cc.
ObjectFactory ns3::OlsrHelper::m_agentFactory [private] |
Definition at line 63 of file olsr-helper.h.
Referenced by OlsrHelper().