Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
pull up another (useless) method in the surf::Host hierarchy
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 22 Dec 2015 10:38:42 +0000 (11:38 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 22 Dec 2015 10:38:42 +0000 (11:38 +0100)
src/surf/host_clm03.cpp
src/surf/host_clm03.hpp
src/surf/host_interface.hpp
src/surf/host_ptask_L07.hpp

index 1dc8e21..e3610c2 100644 (file)
@@ -130,11 +130,6 @@ HostCLM03::~HostCLM03()
 {
 }
 
-bool HostCLM03::isUsed(){
-  THROW_IMPOSSIBLE;             /* This model does not implement parallel tasks */
-  return -1;
-}
-
 void HostCLM03::updateState(tmgr_trace_event_t /*event_type*/, double /*value*/, double /*date*/){
   THROW_IMPOSSIBLE;             /* This model does not implement parallel tasks */
 }
index 0a4d47e..075589c 100644 (file)
@@ -55,8 +55,6 @@ public:
   ~HostCLM03();
   void updateState(tmgr_trace_event_t event_type, double value, double date) override;
 
-  bool isUsed() override;
-
   xbt_dynar_t getVms();
 };
 
index 793e99d..832ef5e 100644 (file)
@@ -253,6 +253,8 @@ public:
    */
   virtual int fileMove(surf_file_t fd, const char* fullpath);
 
+  bool isUsed() override {DIE_IMPOSSIBLE;} // FIXME: Host should not be a Resource
+
 public:
   xbt_dynar_t p_storage;
   RoutingEdge *p_netElm;
index bc37f53..521b94f 100644 (file)
@@ -101,7 +101,6 @@ public:
        {}
   ~HostL07()
        {}
-  bool isUsed() override {DIE_IMPOSSIBLE;};
   void updateState(tmgr_trace_event_t /*event_type*/, double /*value*/, double /*date*/) override {DIE_IMPOSSIBLE;};
 };