AntHocNet 2.0.0
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
Loading...
Searching...
No Matches
scenarios.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 * Built-in teaching scenarios: one per network family, shaped like the repo's
6 * presets but scaled down to what reads well on a screen. They change the
7 * scenario only -- mobility, channel, size, traffic -- never the protocol
8 * Config (ADR-0019). The parity test runs every one of them.
9 */
10#ifndef AHN_WEB_SCENARIOS_H
11#define AHN_WEB_SCENARIOS_H
12
13#include <string>
14#include <vector>
15
16#include "ahn_web/sim.h"
17
18namespace ahn_web {
19
20/// Names accepted by buildScenario(), in display order.
21std::vector<std::string> scenarioNames();
22
23/// Populate an empty World with the named scenario. Returns false if unknown.
24bool buildScenario(World& w, const std::string& name);
25
26} // namespace ahn_web
27
28#endif // AHN_WEB_SCENARIOS_H
The whole simulation: nodes, radio, mobility, traffic and the event queue.
Definition sim.h:221
Built-in teaching scenarios: one per network family, shaped like the repo's presets but scaled down t...
Definition scenarios.h:18
std::vector< std::string > scenarioNames()
Names accepted by buildScenario(), in display order.
bool buildScenario(World &w, const std::string &name)
Populate an empty World with the named scenario. Returns false if unknown.