X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a3625e2b5b3077b38b70da8e345175568938738a..02a0b077329593921105001a7f27463ba2d82ced:/src/kernel/resource/NetworkModelFactors.hpp diff --git a/src/kernel/resource/NetworkModelFactors.hpp b/src/kernel/resource/NetworkModelFactors.hpp index ee8b7be599..40a4fae5a4 100644 --- a/src/kernel/resource/NetworkModelFactors.hpp +++ b/src/kernel/resource/NetworkModelFactors.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -7,6 +7,7 @@ #define SIMGRID_KERNEL_RESOURCE_NETWORKMODELFACTORS_HPP #include "simgrid/sg_config.hpp" +#include "src/kernel/resource/FactorSet.hpp" #include "xbt/asserts.h" #include @@ -18,6 +19,9 @@ namespace simgrid::kernel::resource { /** This Trait of NetworkModel is in charge of handling the network factors (bw and lat) */ class XBT_PUBLIC NetworkModelFactors { + static FactorSet cfg_latency_factor; + static FactorSet cfg_bandwidth_factor; + using NetworkFactorCb = double(double size, const s4u::Host* src, const s4u::Host* dst, const std::vector& links, const std::unordered_set& netzones);