ns-3
|
Helper class that adds OLSR routing to nodes. More...
#include <olsr-helper.h>
Public Member Functions | |
OlsrHelper () | |
OlsrHelper (const OlsrHelper &) | |
Construct an OlsrHelper from another previously initialized instance (Copy Constructor). | |
OlsrHelper * | Copy (void) const |
virtual constructor | |
void | ExcludeInterface (Ptr< Node > node, uint32_t interface) |
virtual Ptr< Ipv4RoutingProtocol > | Create (Ptr< Node > node) const |
void | Set (std::string name, const AttributeValue &value) |
![]() | |
void | PrintRoutingTableAllAt (Time printTime, Ptr< OutputStreamWrapper > stream) const |
prints the routing tables of all nodes at a particular time. | |
void | PrintRoutingTableAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream) const |
prints the routing tables of all nodes at regular intervals specified by user. | |
void | PrintRoutingTableAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const |
prints the routing tables of a node at a particular time. | |
void | PrintRoutingTableEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const |
prints the routing tables of a node at regular intervals specified by user. |
Helper class that adds OLSR routing to nodes.
This class is expected to be used in conjunction with ns3::InternetStackHelper::SetRoutingHelper
ns3::OlsrHelper::OlsrHelper | ( | ) |
Create an OlsrHelper that makes life easier for people who want to install OLSR routing to nodes.
References ns3::ObjectFactory::SetTypeId().
Referenced by Copy().
|
virtual |
virtual constructor
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.
References OlsrHelper().
|
virtual |
node | the node on which the routing protocol will run |
This method will be called by ns3::InternetStackHelper::Install
Implements ns3::Ipv4RoutingHelper.
References ns3::Object::AggregateObject(), and ns3::ObjectFactory::Create().
node | the node for which an exception is to be defined |
interface | an interface of node on which OLSR is not to be installed |
This method allows the user to specify an interface on which OLSR is not to be installed on
void ns3::OlsrHelper::Set | ( | std::string | name, |
const AttributeValue & | value | ||
) |
name | the name of the attribute to set |
value | the value of the attribute to set. |
This method controls the attributes of ns3::olsr::RoutingProtocol
References ns3::ObjectFactory::Set().