Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename next_occuring_event_isIdempotent() into nextOccuringEventIsIdempotent() (...
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 2 Oct 2016 16:42:34 +0000 (18:42 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 2 Oct 2016 16:42:34 +0000 (18:42 +0200)
src/surf/HostImpl.hpp
src/surf/cpu_interface.hpp
src/surf/host_clm03.cpp
src/surf/network_cm02.cpp
src/surf/network_cm02.hpp
src/surf/network_constant.hpp
src/surf/network_ns3.hpp
src/surf/ptask_L07.hpp
src/surf/storage_interface.hpp
src/surf/surf_c_bindings.cpp
src/surf/surf_interface.hpp

index 9307cd3..695e0c0 100644 (file)
@@ -50,15 +50,12 @@ namespace surf {
 class HostModel : public Model {
 public:
   HostModel() : Model() {}
-  ~HostModel() override {}
 
   HostImpl *createHost(const char *name, kernel::routing::NetCard *net, Cpu *cpu);
 
   virtual void adjustWeightOfDummyCpuActions();
   virtual Action *executeParallelTask(int host_nb, sg_host_t *host_list,
       double *flops_amount, double *bytes_amount, double rate);
-
-  bool next_occuring_event_isIdempotent() override {return true;}
 };
 
 /************
index 22317b5..7fbfbe4 100644 (file)
@@ -51,7 +51,6 @@ public:
 
   void updateActionsStateLazy(double now, double delta) override;
   void updateActionsStateFull(double now, double delta) override;
-  bool next_occuring_event_isIdempotent() {return true;};
 };
 
 /************
index ffdf58f..14de789 100644 (file)
@@ -52,7 +52,7 @@ double HostCLM03Model::nextOccuringEvent(double now){
   adjustWeightOfDummyCpuActions();
 
   double min_by_cpu = surf_cpu_model_pm->nextOccuringEvent(now);
-  double min_by_net = surf_network_model->next_occuring_event_isIdempotent() ? surf_network_model->nextOccuringEvent(now) : -1;
+  double min_by_net = surf_network_model->nextOccuringEventIsIdempotent() ? surf_network_model->nextOccuringEvent(now) : -1;
   double min_by_sto = surf_storage_model->nextOccuringEvent(now);
 
   XBT_DEBUG("model %p, %s min_by_cpu %f, %s min_by_net %f, %s min_by_sto %f",
index e1eb56a..91a4622 100644 (file)
@@ -386,11 +386,6 @@ Action *NetworkCm02Model::communicate(kernel::routing::NetCard *src, kernel::rou
   return action;
 }
 
-bool NetworkCm02Model::next_occuring_event_isIdempotent()
-{
-  return true;
-}
-
 void NetworkCm02Model::gapAppend(double size, const Link* link, NetworkAction* action)
 {
   // Nothing
index 4a97f34..b16be53 100644 (file)
@@ -46,7 +46,6 @@ namespace simgrid {
       void updateActionsStateLazy(double now, double delta) override;
       void updateActionsStateFull(double now, double delta) override;
       Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate) override;
-      bool next_occuring_event_isIdempotent() override;
       virtual void gapAppend(double size, const Link* link, NetworkAction* action);
     protected:
       bool haveGap_ = false;
index 7a8644d..e0d7d7d 100644 (file)
@@ -31,7 +31,6 @@ namespace simgrid {
 
       Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate) override;
       double nextOccuringEvent(double now) override;
-      bool next_occuring_event_isIdempotent() override {return true;}
       void updateActionsState(double now, double delta) override;
 
       Link* createLink(const char *name, double bw, double lat, e_surf_link_sharing_policy_t policy, xbt_dict_t properties) override;
index e4254be..0660b01 100644 (file)
@@ -23,7 +23,7 @@ public:
       e_surf_link_sharing_policy_t policy, xbt_dict_t properties) override;
   Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate);
   double nextOccuringEvent(double now) override;
-  bool next_occuring_event_isIdempotent() {return false;}
+  bool nextOccuringEventIsIdempotent() {return false;}
   void updateActionsState(double now, double delta) override;
 };
 
index a611d47..c03c0b1 100644 (file)
@@ -63,7 +63,6 @@ public:
       xbt_dict_t properties) override;
 
   Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate) override;
-  bool next_occuring_event_isIdempotent() override {return true;}
 
   HostL07Model *hostModel_;
 };
index 46cbf19..db2dbea 100644 (file)
@@ -68,8 +68,6 @@ public:
                                  const char* content_name, const char* content_type,
                                  xbt_dict_t properties, const char *attach) = 0;
 
-  bool next_occuring_event_isIdempotent() {return true;}
-
   std::vector<Storage*> p_storageList;
 };
 
index e0c865b..a18cf79 100644 (file)
@@ -87,7 +87,7 @@ double surf_solve(double max_date)
     next_event_date = future_evt_set->next_date();
     XBT_DEBUG("Next TRACE event: %f", next_event_date);
 
-    if(! surf_network_model->next_occuring_event_isIdempotent()){ // NS3, I see you
+    if(! surf_network_model->nextOccuringEventIsIdempotent()){ // NS3, I see you
       if (next_event_date!=-1.0 && time_delta!=-1.0) {
         time_delta = MIN(next_event_date - NOW, time_delta);
       } else {
index 6f99474..daf878b 100644 (file)
@@ -342,7 +342,7 @@ public:
    * 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 next_occuring_event_isIdempotent()=0;
+  virtual bool nextOccuringEventIsIdempotent() { return true;}
 
 protected:
   ActionLmmListPtr modifiedSet_;