AntHocNet 2.0.0
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
Loading...
Searching...
No Matches
anthocnet-helper.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-only
2// Copyright (C) 2026 Daniel Henrique Joppi
3
4/*
5 * Helper to install the AntHocNet routing protocol on nodes, mirroring
6 * AodvHelper.
7 */
8#ifndef ANTHOCNET_HELPER_H
9#define ANTHOCNET_HELPER_H
10
11#include "ns3/ipv4-routing-helper.h"
12#include "ns3/object-factory.h"
13#include "ns3/node-container.h"
14
15namespace ns3 {
16
18{
19public:
21
22 AntHocNetHelper* Copy() const override;
23 Ptr<Ipv4RoutingProtocol> Create(Ptr<Node> node) const override;
24
25 /// Set an attribute on the routing protocol to be created.
26 void Set(std::string name, const AttributeValue& value);
27
28 /// Seed the protocol RNGs on the given nodes; returns streams used.
29 int64_t AssignStreams(NodeContainer c, int64_t stream);
30
31private:
32 ObjectFactory m_agentFactory;
33};
34
35} // namespace ns3
36
37#endif // ANTHOCNET_HELPER_H
void Set(std::string name, const AttributeValue &value)
Set an attribute on the routing protocol to be created.
AntHocNetHelper * Copy() const override
int64_t AssignStreams(NodeContainer c, int64_t stream)
Seed the protocol RNGs on the given nodes; returns streams used.
Ptr< Ipv4RoutingProtocol > Create(Ptr< Node > node) const override