Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix MC with the class-hierarchification of simgrid::simix::Synchro
[simgrid.git] / src / surf / network_constant.hpp
index a15b173..6f88d3a 100644 (file)
@@ -42,20 +42,8 @@ namespace simgrid {
      **********/
     class NetworkConstantAction : public NetworkAction {
     public:
-      NetworkConstantAction(NetworkConstantModel *model_, double size, double latency)
-    : NetworkAction(model_, size, false)
-    , m_latInit(latency)
-    {
-        m_latency = latency;
-        if (m_latency <= 0.0) {
-          p_stateSet = getModel()->getDoneActionSet();
-          p_stateSet->push_back(*this);
-        }
-        p_variable = NULL;
-    };
-      int unref() override;
-      void cancel() override;
-      double m_latInit;
+      NetworkConstantAction(NetworkConstantModel *model_, double size, double latency);
+      double initialLatency_;
     };
 
   }