Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics in VM13
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 23 Dec 2015 00:21:26 +0000 (01:21 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 23 Dec 2015 00:21:29 +0000 (01:21 +0100)
- Mark as override some methods
- Kill a method redefinition to the same content

src/surf/vm_hl13.cpp
src/surf/vm_hl13.hpp

index d31a30a..19d008d 100644 (file)
@@ -329,15 +329,6 @@ void VMHL13::setAffinity(Cpu *cpu, unsigned long mask){
  p_action->setAffinity(cpu, mask);
 }
 
-/*
- * A surf level object will be useless in the upper layer. Returning the
- * dict_elm of the host.
- **/
-sg_host_t VMHL13::getPm()
-{
-  return p_hostPM;
-}
-
 /* Adding a task to a VM updates the VCPU task on its physical machine. */
 Action *VMHL13::execute(double size)
 {
index ca0f380..2244a38 100644 (file)
@@ -53,19 +53,17 @@ public:
   VMHL13(VMModel *model, const char* name, xbt_dict_t props, sg_host_t host_PM);
   ~VMHL13();
 
-  void suspend();
-  void resume();
+  void suspend() override;
+  void resume() override;
 
-  void save();
-  void restore();
+  void save() override;
+  void restore() override;
 
-  void migrate(sg_host_t ind_dst_pm);
+  void migrate(sg_host_t ind_dst_pm) override;
 
   e_surf_resource_state_t getState();
   void setState(e_surf_resource_state_t state);
 
-  sg_host_t getPm(); // will be vm_ws_get_pm()
-
   void setBound(double bound);
   void setAffinity(Cpu *cpu, unsigned long mask);