/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/** @ingroup SURF_callbacks
* @brief Callbacks fired after VM creation. Signature: `void(VirtualMachine*)`
*/
/** @ingroup SURF_callbacks
* @brief Callbacks fired after VM creation. Signature: `void(VirtualMachine*)`
*/
/** @ingroup SURF_callbacks
* @brief Callbacks fired after VM destruction. Signature: `void(VirtualMachine*)`
*/
/** @ingroup SURF_callbacks
* @brief Callbacks fired after VM destruction. Signature: `void(VirtualMachine*)`
*/
/** @ingroup SURF_callbacks
* @brief Callbacks after VM State changes. Signature: `void(VirtualMachine*)`
*/
/** @ingroup SURF_callbacks
* @brief Callbacks after VM State changes. Signature: `void(VirtualMachine*)`
*/
- /** @brief Save the VM (Not yet implemented) */
- virtual void save();
-
- /** @brief Restore the VM (Not yet implemented) */
- virtual void restore();
+ /** @brief Shutdown the VM */
+ virtual void shutdown(simgrid::simix::ActorImpl* issuer);
- /** @brief Migrate the VM to the destination host */
- virtual void migrate(s4u::Host* dest);
+ /** @brief Change the physical host on which the given VM is running */
+ virtual void setPm(s4u::Host* dest);
virtual void setBound(double bound);
void getParams(vm_params_t params);
void setParams(vm_params_t params);
/* The vm object of the lower layer */
virtual void setBound(double bound);
void getParams(vm_params_t params);
void setParams(vm_params_t params);
/* The vm object of the lower layer */
* @brief SURF VM model interface class
* @details A model is an object which handle the interactions between its Resources and its Actions
*/
* @brief SURF VM model interface class
* @details A model is an object which handle the interactions between its Resources and its Actions
*/
double nextOccuringEvent(double now) override;
void updateActionsState(double /*now*/, double /*delta*/) override{};
double nextOccuringEvent(double now) override;
void updateActionsState(double /*now*/, double /*delta*/) override{};