]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/kernel/resource/Model.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change way vivaldi coordinates are managed internally
[simgrid.git] / include / simgrid / kernel / resource / Model.hpp
index 4f3b47142135cdeab7ce755592cea2957927f21f..b36fc9933ac124001b10358b4ea8f61a171c217d 100644 (file)
@@ -28,7 +28,7 @@ public:
                    gets recomputed anyway. In that case, you'd better not try to be cleaver with lazy and go for
                    a simple full update.  */
   };
-  Model()             = default;
+  explicit Model(const std::string& name);
   Model(const Model&) = delete;
   Model& operator=(const Model&) = delete;
 
@@ -127,8 +127,6 @@ public:
 
   /** @brief Gets the model name */
   std::string get_name() const { return name_; }
-  /** @brief Sets the model name */
-  Model* set_name(const std::string& name);
 
 private:
   UpdateAlgo update_algorithm_ = UpdateAlgo::FULL;
@@ -138,7 +136,7 @@ private:
   Action::StateSet failed_action_set_;   /**< Done with failure */
   Action::StateSet finished_action_set_; /**< Done successful */
   Action::StateSet ignored_action_set_;  /**< not considered (failure detectors?) */
-  std::string name_ = "Unnamed";         /**< Model name */
+  const std::string name_;               /**< Model name */
 
   ActionHeap action_heap_;
 };