Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics: use C++ type names
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 22 Oct 2016 00:19:42 +0000 (02:19 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 22 Oct 2016 00:19:42 +0000 (02:19 +0200)
src/surf/VirtualMachineImpl.cpp
src/surf/VirtualMachineImpl.hpp

index be31926..018f049 100644 (file)
@@ -40,7 +40,7 @@ simgrid::xbt::signal<void(simgrid::surf::VirtualMachineImpl*)> onVmStateChange;
 
 std::deque<VirtualMachineImpl*> VirtualMachineImpl::allVms_;
 
 
 std::deque<VirtualMachineImpl*> VirtualMachineImpl::allVms_;
 
-s4u::Host* VMModel::createVM(const char* name, sg_host_t host_PM)
+s4u::Host* VMModel::createVM(const char* name, s4u::Host* host_PM)
 {
   return new s4u::VirtualMachine(name, host_PM);
 }
 {
   return new s4u::VirtualMachine(name, host_PM);
 }
@@ -182,13 +182,13 @@ void VirtualMachineImpl::restore()
 }
 
 /** @brief returns the physical machine on which the VM is running **/
 }
 
 /** @brief returns the physical machine on which the VM is running **/
-sg_host_t VirtualMachineImpl::getPm()
+s4u::Host* VirtualMachineImpl::getPm()
 {
   return hostPM_;
 }
 
 /* Update the physical host of the given VM */
 {
   return hostPM_;
 }
 
 /* Update the physical host of the given VM */
-void VirtualMachineImpl::migrate(sg_host_t host_dest)
+void VirtualMachineImpl::migrate(s4u::Host* host_dest)
 {
   const char* vm_name     = piface_->name().c_str();
   const char* pm_name_src = hostPM_->name().c_str();
 {
   const char* vm_name     = piface_->name().c_str();
   const char* pm_name_src = hostPM_->name().c_str();
index 99faa0b..ec00646 100644 (file)
@@ -72,10 +72,10 @@ public:
   virtual void restore();
 
   /** @brief Migrate the VM to the destination host */
   virtual void restore();
 
   /** @brief Migrate the VM to the destination host */
-  virtual void migrate(sg_host_t dest_PM);
+  virtual void migrate(s4u::Host* dest);
 
   /** @brief Get the physical machine hosting the VM */
 
   /** @brief Get the physical machine hosting the VM */
-  sg_host_t getPm();
+  s4u::Host* getPm();
 
   virtual void setBound(double bound);
 
 
   virtual void setBound(double bound);
 
@@ -109,7 +109,7 @@ public:
    * @param name The name of the new VM
    * @param host_PM The real machine hosting the VM
    */
    * @param name The name of the new VM
    * @param host_PM The real machine hosting the VM
    */
-  s4u::Host* createVM(const char* name, sg_host_t host_PM);
+  s4u::Host* createVM(const char* name, s4u::Host* host_PM);
   void adjustWeightOfDummyCpuActions() override{};
 
   double nextOccuringEvent(double now) override;
   void adjustWeightOfDummyCpuActions() override{};
 
   double nextOccuringEvent(double now) override;