*/
class VirtualMachineImpl : public HostImpl {
public:
- VirtualMachineImpl(const char* name, simgrid::s4u::Host* host);
+ VirtualMachineImpl(s4u::Host* piface, s4u::Host* host);
~VirtualMachineImpl();
/** @brief Suspend the VM */
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 */
- sg_host_t getPm();
+ s4u::Host* getPm();
virtual void setBound(double bound);
*/
class VMModel : public HostModel {
public:
- /**
- * @brief Create a new 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);
void adjustWeightOfDummyCpuActions() override{};
double nextOccuringEvent(double now) override;