20 #include "aodv-helper.h"
21 #include "ns3/aodv-routing-protocol.h"
22 #include "ns3/node-list.h"
23 #include "ns3/names.h"
25 #include "ns3/ipv4-list-routing.h"
30 AodvHelper::AodvHelper() :
33 m_agentFactory.SetTypeId (
"ns3::aodv::RoutingProtocol");
37 AodvHelper::Copy (
void)
const
53 m_agentFactory.Set (name, value);
59 int64_t currentStream = stream;
61 for (NodeContainer::Iterator i = c.
Begin (); i != c.
End (); ++i)
71 currentStream += aodv->AssignStreams (currentStream);
81 for (uint32_t i = 0; i < list->GetNRoutingProtocols (); i++)
83 listProto = list->GetRoutingProtocol (i, priority);
84 listAodv = DynamicCast<aodv::RoutingProtocol> (listProto);
87 currentStream += listAodv->AssignStreams (currentStream);
93 return (currentStream - stream);
smart pointer class similar to boost::intrusive_ptr
Hold a value for an Attribute.
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
void AggregateObject(Ptr< Object > other)
Access to the Ipv4 forwarding table, interfaces, and configuration.
keep track of a set of node pointers.
Iterator Begin(void) const
Get an iterator which refers to the first Node in the container.
#define NS_ASSERT_MSG(condition, message)
Helper class that adds AODV routing to nodes.
Ptr< T > GetObject(void) const