AntHocNet 2.6.1
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
18public:
20
21 AntHocNetHelper* Copy() const override;
22 Ptr<Ipv4RoutingProtocol> Create(Ptr<Node> node) const override;
23
24 /// Set an attribute on the routing protocol to be created.
25 void Set(std::string name, const AttributeValue& value);
26
27 /// Seed the protocol RNGs on the given nodes; returns streams used.
28 int64_t AssignStreams(NodeContainer c, int64_t stream);
29
30private:
31 ObjectFactory m_agentFactory;
32};
33
34} // namespace ns3
35
36#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