X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72d32c4e88a57f4786f62fec48a1bfa454adbff9..02a0b077329593921105001a7f27463ba2d82ced:/src/kernel/resource/NetworkModel.cpp diff --git a/src/kernel/resource/NetworkModel.cpp b/src/kernel/resource/NetworkModel.cpp index 01ded589b2..8a04dc4020 100644 --- a/src/kernel/resource/NetworkModel.cpp +++ b/src/kernel/resource/NetworkModel.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-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. */ @@ -6,15 +6,13 @@ #include #include "simgrid/sg_config.hpp" +#include "src/kernel/resource/FactorSet.hpp" #include "src/kernel/resource/NetworkModel.hpp" #include "src/kernel/resource/profile/Profile.hpp" #include "src/surf/surf_interface.hpp" #include -#ifndef NETWORK_INTERFACE_CPP_ -#define NETWORK_INTERFACE_CPP_ - XBT_LOG_NEW_DEFAULT_SUBCATEGORY(res_network, ker_resource, "Network resources, that fuel communications"); /********* @@ -35,6 +33,10 @@ config::Flag NetworkModel::cfg_crosstraffic( "network/crosstraffic", "Activate the interferences between uploads and downloads for fluid max-min models (LV08, CM02)", "yes"); +config::Flag NetworkModel::cfg_weight_S_parameter( + "network/weight-S", + "Correction factor to apply to the weight of competing streams (default value set by network model)", 0.0); + NetworkModel::~NetworkModel() = default; double NetworkModel::next_occurring_event_full(double now) @@ -109,5 +111,3 @@ void insert_link_latency(std::vector& result, const std::vect } } // namespace simgrid::kernel::resource - -#endif /* NETWORK_INTERFACE_CPP_ */