]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/cpu_cas01.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
normalize the handling of speed traces in CpuTi
[simgrid.git] / src / surf / cpu_cas01.hpp
index 04d2896ccc3bac4c56895af875ac3645905ac4e4..59d99308ae63d9192bd0f6e5b3f002dee5e56b92 100644 (file)
@@ -48,29 +48,22 @@ public:
         int initiallyOn, tmgr_trace_t stateTrace) ;
   ~CpuCas01();
   void updateState(tmgr_trace_iterator_t event_type, double value, double date) override;
-  CpuAction *execute(double size) override;
+  CpuAction *execution_start(double size) override;
   CpuAction *sleep(double duration) override;
 
   bool isUsed() override;
-  void setStateEvent(tmgr_trace_iterator_t stateEvent);
-  void setPowerEvent(tmgr_trace_iterator_t stateEvent);
 
   xbt_dynar_t getSpeedPeakList(); // FIXME: killme to hide our internals
 
 protected:
   void onSpeedChange() override;
-
-private:
-
-  tmgr_trace_iterator_t p_stateEvent;
-  tmgr_trace_iterator_t p_speedEvent;
 };
 
 /**********
  * Action *
  **********/
 class CpuCas01Action: public CpuAction {
-  friend CpuAction *CpuCas01::execute(double size);
+  friend CpuAction *CpuCas01::execution_start(double size);
   friend CpuAction *CpuCas01::sleep(double duration);
 public:
   CpuCas01Action(Model *model, double cost, bool failed, double speed,