After the changes introduced by the worker refactor, cloudsim lost the ability to be restarted. Cloudsim uses an inner registry to keep track of the running simulations. This registry has been moved into its own component inside the platform, therefore changes in the legacy code were required to manage running simulations.
This MR includes a set of changes to allow cloudsim to restart after introducing the worker refactor.
- A method to check if a certain runnning simulation exists has been added to the running simulations component.
- All the previous logic used to rebuild the state has been replaced with the appropiate calls to the Platform components.
Be aware that when introducing multi region support this will need to be changed.