Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
finish snake-casing resource::Model
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 2 Apr 2018 09:41:50 +0000 (11:41 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 2 Apr 2018 09:41:50 +0000 (11:41 +0200)
include/simgrid/kernel/resource/Model.hpp
src/surf/host_clm03.cpp
src/surf/network_ns3.hpp
src/surf/surf_c_bindings.cpp

index ad3e0cb..045d201 100644 (file)
@@ -78,12 +78,12 @@ public:
   virtual void update_actions_state_lazy(double now, double delta);
   virtual void update_actions_state_full(double now, double delta);
 
-  /** @brief Returns whether this model have an idempotent shareResource()
+  /** @brief Returns whether this model have an idempotent share_resource()
    *
    * The only model that is not is NS3: computing the next timestamp moves the model up to that point,
    * so we need to call it only when the next timestamp of other sources is computed.
    */
-  virtual bool nextOccuringEventIsIdempotent() { return true; }
+  virtual bool next_occuring_event_is_idempotent() { return true; }
 
 private:
   lmm::System* maxmin_system_           = nullptr;
index 3bf1082..84127e0 100644 (file)
@@ -51,7 +51,7 @@ double HostCLM03Model::next_occuring_event(double now)
 
   double min_by_cpu = surf_cpu_model_pm->next_occuring_event(now);
   double min_by_net =
-      surf_network_model->nextOccuringEventIsIdempotent() ? surf_network_model->next_occuring_event(now) : -1;
+      surf_network_model->next_occuring_event_is_idempotent() ? surf_network_model->next_occuring_event(now) : -1;
   double min_by_sto = surf_storage_model->next_occuring_event(now);
 
   XBT_DEBUG("model %p, %s min_by_cpu %f, %s min_by_net %f, %s min_by_sto %f",
index 542558e..aa8ab6b 100644 (file)
@@ -21,7 +21,7 @@ public:
                        e_surf_link_sharing_policy_t policy) override;
   kernel::resource::Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override;
   double next_occuring_event(double now) override;
-  bool nextOccuringEventIsIdempotent() override { return false; }
+  bool next_occuring_event_is_idempotent() override { return false; }
   void update_actions_state(double now, double delta) override;
 };
 
index e96c017..06af81e 100644 (file)
@@ -83,7 +83,7 @@ double surf_solve(double max_date)
     double next_event_date = future_evt_set->next_date();
     XBT_DEBUG("Next TRACE event: %f", next_event_date);
 
-    if (not surf_network_model->nextOccuringEventIsIdempotent()) { // NS3, I see you
+    if (not surf_network_model->next_occuring_event_is_idempotent()) { // NS3, I see you
       if (next_event_date != -1.0) {
         time_delta = std::min(next_event_date - NOW, time_delta);
       } else {