Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get it to compile on clang on my machine
[simgrid.git] / src / surf / network_cm02.hpp
index 3dd58ea..1789ba5 100644 (file)
@@ -30,16 +30,8 @@ class NetworkCm02Model : public NetworkModel {
 private:
   void initialize();
 public:
-  NetworkCm02Model(int /*i*/) : NetworkModel("network") {
-       f_networkSolve = lmm_solve;
-       m_haveGap = false;
-  };//FIXME: add network clean interface
-  NetworkCm02Model(const char *name) : NetworkModel(name) {
-    this->initialize();
-  }
-  NetworkCm02Model() : NetworkModel("network") {
-    this->initialize();
-  }
+  NetworkCm02Model(int /*i*/) : NetworkModel() {};
+  NetworkCm02Model();
   ~NetworkCm02Model() {
   }
   Link* createLink(const char *name,
@@ -56,6 +48,7 @@ public:
   void updateActionsStateFull(double now, double delta);
   Action *communicate(RoutingEdge *src, RoutingEdge *dst,
                                           double size, double rate);
+  bool shareResourcesIsIdempotent() {return true;}
 };
 
 /************
@@ -90,7 +83,7 @@ class NetworkCm02Action : public NetworkAction {
 
 public:
   NetworkCm02Action(Model *model, double cost, bool failed)
- : NetworkAction(model, cost, failed) {};
    : NetworkAction(model, cost, failed) {};
   void updateRemainingLazy(double now);
 };