cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/allocationpolicies/power/PowerVmAllocationPolicyMigrationAbstract.java
protected void restoreAllocation() {
        for (final Host host : getHostList()) {
            host.destroyAllVms();
            host.reallocateMigratingInVms();
        }

        for (final Vm vm : savedAllocation.keySet()) {
            final PowerHost host = (PowerHost) savedAllocation.get(vm);
            if (!host.createTemporaryVm(vm)) {
                Log.printFormattedLine(
                        "Couldn't restore VM #%d on Host #%d",
                        vm.getId(), host.getId());
                return;
            }
        }
    }
/**
     * Restore VM allocation from the allocation history.
     *
     * @see #savedAllocation
     */
Restore VM allocation from the allocation history.
@see #savedAllocation
Restore VM allocation from the allocation history . @see #savedAllocation
protected void restoreAllocation() {
        for (final Host host : getHostList()) {
            host.destroyAllVms();
            host.reallocateMigratingInVms();
        }
        for (final Vm vm : savedAllocation.keySet()) {
            final PowerHost host = (PowerHost) savedAllocation.get(vm);
            if (!host.createTemporaryVm(vm)) {
                Log.printFormattedLine(
                        "Couldn't restore VM #%d on Host #%d",
                        vm.getId(), host.getId());
                return;
            }
        }
    }
protected void restoreAllocation ( ) { for ( final Host host : getHostList ( ) ) { host . destroyAllVms ( ) ; host . reallocateMigratingInVms ( ) ; } for ( final Vm vm : savedAllocation . keySet ( ) ) { final PowerHost host = ( PowerHost ) savedAllocation . get ( vm ) ; if ( ! host . createTemporaryVm ( vm ) ) { Log . printFormattedLine ( "Couldn't restore VM #%d on Host #%d" , vm . getId ( ) , host . getId ( ) ) ; return ; } } }
Restore VM allocation from the allocation history.
Restore VM allocation from the allocation history .