Exemplo n.º 1
0
        private IEnumerable <VM> AdvanceSimulation(SimualtionTimeEvent @event)
        {
            HandleRemovedEvent(@event.RemovedVMs);
            VMs.AdvanceRunningVMs(@event.VMEvents);
            migrations.Advance();
            servers.UpdateUsedResources();
            prognosingService.UpdateTraces(VMs, @event.Id);

            return(@event.VMEvents.Where(vm => vm.IsNew).Select(Mapper.Map));
        }