Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Host::get_englobing_zone() returns the englobing netzone
[simgrid.git] / include / simgrid / s4u / Host.hpp
index ea0afe0..7702d6b 100644 (file)
@@ -99,7 +99,8 @@ public:
 
   const char* get_property(const std::string& key) const;
   void set_property(const std::string& key, const std::string& value);
-  std::unordered_map<std::string, std::string>* get_properties();
+  const std::unordered_map<std::string, std::string>* get_properties() const;
+  void set_properties(const std::map<std::string, std::string>& properties);
 
   void set_state_profile(kernel::profile::Profile* p);
   void set_speed_profile(kernel::profile::Profile* p);
@@ -124,7 +125,9 @@ public:
 
   void route_to(Host* dest, std::vector<Link*>& links, double* latency);
   void route_to(Host* dest, std::vector<kernel::resource::LinkImpl*>& links, double* latency);
+  void send_to(Host* dest, double byte_amount);
 
+  NetZone* get_englobing_zone();
   /** Block the calling actor on an execution located on the called host
    *
    * It is not a problem if the actor is not located on the called host.