SOLA
Loading...
Searching...
No Matches
peer_discovery_general.h
1// Copyright 2023 The SOLA authors
2//
3// This file is part of DAISI.
4//
5// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU
6// General Public License as published by the Free Software Foundation; version 2.
7//
8// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
9// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
10// Public License for more details.
11//
12// You should have received a copy of the GNU General Public License along with DAISI. If not, see
13// <https://www.gnu.org/licenses/>.
14//
15// SPDX-License-Identifier: GPL-2.0-only
16
17#ifndef DAISI_MINHTON_NS3_MINHTON_PEER_DISCOVERY_GENERAL_H_
18#define DAISI_MINHTON_NS3_MINHTON_PEER_DISCOVERY_GENERAL_H_
19
20#include <cstdint>
21#include <string>
22
23#include "manager/scenariofile_component.h"
24
25namespace daisi::minhton_ns3 {
26
27struct Gaussian {
28 static std::string typeName() { return "gaussian"; }
29
30 uint32_t mean;
31 uint32_t sigma;
32
33 void parse(const YAML::Node &node);
34};
35
36struct Uniform {
37 static std::string typeName() { return "uniform"; }
38
39 uint32_t min;
40 uint32_t max;
41
42 void parse(const YAML::Node &node);
43};
44
46 static std::string typeName() { return "constant"; }
47
48 uint64_t time;
49
50 void parse(const YAML::Node &node);
51};
52
53} // namespace daisi::minhton_ns3
54
55#endif
Definition peer_discovery_general.h:45
Definition peer_discovery_general.h:27
Definition peer_discovery_general.h:36