|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #include "ns3/olsr-routing-protocol.h"
22 #include "ns3/node-list.h"
23 #include "ns3/names.h"
25 #include "ns3/ipv4-list-routing.h"
35 : m_agentFactory (o.m_agentFactory)
60 it->second.insert (interface);
73 agent->SetInterfaceExclusions (it->second);
89 int64_t currentStream = stream;
101 currentStream +=
olsr->AssignStreams (currentStream);
111 for (uint32_t i = 0; i <
list->GetNRoutingProtocols (); i++)
113 listProto =
list->GetRoutingProtocol (i, priority);
114 listOlsr = DynamicCast<olsr::RoutingProtocol> (listProto);
117 currentStream += listOlsr->AssignStreams (currentStream);
123 return (currentStream - stream);
OlsrHelper()
Create an OlsrHelper that makes life easier for people who want to install OLSR routing to nodes.
void ExcludeInterface(Ptr< Node > node, uint32_t interface)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ObjectFactory m_agentFactory
Object factory.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
int64_t AssignStreams(NodeContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
Hold a value for an Attribute.
OLSR routing protocol for IPv4.
std::map< Ptr< Node >, std::set< uint32_t > > m_interfaceExclusions
container of interfaces excluded from OLSR operations
void Set(std::string name, const AttributeValue &value)
Access to the IPv4 forwarding table, interfaces, and configuration.
Helper class that adds OLSR routing to nodes.
Iterator Begin(void) const
Get an iterator which refers to the first Node in the container.
void AggregateObject(Ptr< Object > other)
Aggregate two Objects together.
virtual Ptr< Ipv4RoutingProtocol > Create(Ptr< Node > node) const
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator.
OlsrHelper * Copy(void) const
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
keep track of a set of node pointers.
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.