Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change public NetworkModelIntf.hpp into private NetworkModelFactors.hpp
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 23 Oct 2022 20:08:48 +0000 (22:08 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 23 Oct 2022 20:14:55 +0000 (22:14 +0200)
- This will soon become a Trait dedicated to the handling of factors

MANIFEST.in
src/kernel/resource/NetworkModel.cpp
src/kernel/resource/NetworkModel.hpp
src/kernel/resource/NetworkModelFactors.hpp [moved from include/simgrid/kernel/resource/NetworkModelIntf.hpp with 93% similarity]
src/kernel/resource/NetworkModelFactors_test.cpp [moved from src/kernel/resource/NetworkModelIntf_test.cpp with 97% similarity]
tools/cmake/DefinePackages.cmake
tools/cmake/Tests.cmake

index 2406d6f..8d2e301 100644 (file)
@@ -2008,7 +2008,6 @@ include include/simgrid/kernel/ProfileBuilder.hpp
 include include/simgrid/kernel/Timer.hpp
 include include/simgrid/kernel/resource/Action.hpp
 include include/simgrid/kernel/resource/Model.hpp
-include include/simgrid/kernel/resource/NetworkModelIntf.hpp
 include include/simgrid/kernel/routing/ClusterZone.hpp
 include include/simgrid/kernel/routing/DijkstraZone.hpp
 include include/simgrid/kernel/routing/DragonflyZone.hpp
@@ -2246,7 +2245,8 @@ include src/kernel/resource/LinkImpl.hpp
 include src/kernel/resource/Model.cpp
 include src/kernel/resource/NetworkModel.cpp
 include src/kernel/resource/NetworkModel.hpp
-include src/kernel/resource/NetworkModelIntf_test.cpp
+include src/kernel/resource/NetworkModelFactors.hpp
+include src/kernel/resource/NetworkModelFactors_test.cpp
 include src/kernel/resource/Resource.hpp
 include src/kernel/resource/SplitDuplexLinkImpl.cpp
 include src/kernel/resource/SplitDuplexLinkImpl.hpp
index 69dd1dc..8341a7a 100644 (file)
@@ -13,9 +13,6 @@
 
 #include <numeric>
 
-#ifndef NETWORK_INTERFACE_CPP_
-#define NETWORK_INTERFACE_CPP_
-
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(res_network, ker_resource, "Network resources, that fuel communications");
 
 /*********
@@ -138,5 +135,3 @@ void insert_link_latency(std::vector<StandardLinkImpl*>& result, const std::vect
 }
 
 } // namespace simgrid::kernel::resource
-
-#endif /* NETWORK_INTERFACE_CPP_ */
index 515c0ef..73de863 100644 (file)
@@ -7,7 +7,7 @@
 #define SIMGRID_KERNEL_RESOURCE_NETWORKMODEL_HPP
 
 #include "simgrid/kernel/resource/Model.hpp"
-#include "simgrid/kernel/resource/NetworkModelIntf.hpp"
+#include "src/kernel/resource/NetworkModelFactors.hpp"
 #include "src/kernel/resource/StandardLinkImpl.hpp"
 
 #include <list>
@@ -3,8 +3,8 @@
 /* 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. */
 
-#ifndef SIMGRID_KERNEL_RESOURCE_NETWORKMODELINTF_HPP
-#define SIMGRID_KERNEL_RESOURCE_NETWORKMODELINTF_HPP
+#ifndef SIMGRID_KERNEL_RESOURCE_NETWORKMODELFACTORS_HPP
+#define SIMGRID_KERNEL_RESOURCE_NETWORKMODELFACTORS_HPP
 
 #include <simgrid/forward.h>
 
@@ -5,10 +5,10 @@
 
 #include "catch.hpp"
 
-#include "simgrid/kernel/resource/NetworkModelIntf.hpp"
 #include "simgrid/s4u/Engine.hpp"
 #include "simgrid/sg_config.hpp"
 #include "src/internal_config.h" // HAVE_SMPI
+#include "src/kernel/resource/NetworkModelFactors.hpp"
 
 static double factor_cb(double, const simgrid::s4u::Host*, const simgrid::s4u::Host*,
                         const std::vector<simgrid::s4u::Link*>&, const std::unordered_set<simgrid::s4u::NetZone*>&)
index 60c15b5..723d2f4 100644 (file)
@@ -18,6 +18,7 @@ set(EXTRA_DIST
   src/kernel/actor/Simcall.hpp
   src/kernel/resource/LinkImpl.hpp
   src/kernel/resource/NetworkModel.hpp
+  src/kernel/resource/NetworkModelFactors.hpp
   src/kernel/resource/SplitDuplexLinkImpl.hpp
   src/kernel/resource/StandardLinkImpl.hpp
   src/kernel/resource/WifiLinkImpl.hpp
@@ -708,7 +709,6 @@ set(headers_to_install
   include/simgrid/s4u.hpp
 
   include/simgrid/kernel/resource/Action.hpp
-  include/simgrid/kernel/resource/NetworkModelIntf.hpp
   include/simgrid/kernel/resource/Model.hpp
 
   include/simgrid/kernel/routing/ClusterZone.hpp
index c6d4aa0..4ded9f1 100644 (file)
@@ -123,7 +123,7 @@ ENDIF()
 
 # New tests should use the Catch Framework
 set(UNIT_TESTS  src/xbt/unit-tests_main.cpp
-                src/kernel/resource/NetworkModelIntf_test.cpp
+                src/kernel/resource/NetworkModelFactors_test.cpp
                 src/kernel/resource/SplitDuplexLinkImpl_test.cpp
                 src/kernel/resource/profile/Profile_test.cpp
                 src/kernel/routing/DijkstraZone_test.cpp