Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplyfying create_host and exporting it to s4u::NetZone
[simgrid.git] / include / simgrid / s4u / NetZone.hpp
index b3d814c..db9b525 100644 (file)
@@ -76,6 +76,16 @@ public:
       on_route_creation;
   static xbt::signal<void(NetZone const&)> on_creation;
   static xbt::signal<void(NetZone const&)> on_seal;
+
+  /**
+   * @brief Create a Host
+   *
+   * @param name  Host name
+   * @param speed_per_state Vector of CPU's speeds
+   */
+  s4u::Host* create_host(const std::string& name, const std::vector<double>& speed_per_pstate);
+  /** @brief Create a Host (string version) */
+  s4u::Host* create_host(const std::string& name, const std::vector<std::string>& speed_per_pstate);
 };
 
 // External constructors so that the types (and the types of their content) remain hidden