cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/datacenters/DatacenterSimple.java
protected double updateHostsProcessing() {
        double nextSimulationTime = Double.MAX_VALUE;
        for (final Host host : getHostList()) {
            final double time = host.updateProcessing(getSimulation().clock());
            nextSimulationTime = Math.min(time, nextSimulationTime);
        }

        // Guarantees a minimal interval before scheduling the event
        final double minTimeBetweenEvents = getSimulation().getMinTimeBetweenEvents()+0.01;
        nextSimulationTime = Math.max(nextSimulationTime, minTimeBetweenEvents);

        if (nextSimulationTime == Double.MAX_VALUE) {
            return nextSimulationTime;
        }

        return nextSimulationTime;
    }
/**
     * Updates the processing of all Hosts, that means
     * that makes the processing of VMs running inside such hosts to be updated.
     * Finally, the processing of Cloudlets running inside such VMs is updated.
     *
     * @return the predicted completion time of the earliest finishing cloudlet
     * (which is a relative delay from the current simulation time),
     * or {@link Double#MAX_VALUE} if there is no next Cloudlet to execute
     */
Updates the processing of all Hosts, that means
that makes the processing of VMs running inside such hosts to be updated.
Finally, the processing of Cloudlets running inside such VMs is updated.

@return the predicted completion time of the earliest finishing cloudlet
(which is a relative delay from the current simulation time),
or  Double#MAX_VALUE if there is no next Cloudlet to execute
Updates the processing of all Hosts that means that makes the processing of VMs running inside such hosts to be updated . Finally the processing of Cloudlets running inside such VMs is updated . @return the predicted completion time of the earliest finishing cloudlet ( which is a relative delay from the current simulation time ) or Double#MAX_VALUE if there is no next Cloudlet to execute
protected double updateHostsProcessing() {
        double nextSimulationTime = Double.MAX_VALUE;
        for (final Host host : getHostList()) {
            final double time = host.updateProcessing(getSimulation().clock());
            nextSimulationTime = Math.min(time, nextSimulationTime);
        }
        final double minTimeBetweenEvents = getSimulation().getMinTimeBetweenEvents()+0.01;
        nextSimulationTime = Math.max(nextSimulationTime, minTimeBetweenEvents);
        if (nextSimulationTime == Double.MAX_VALUE) {
            return nextSimulationTime;
        }
        return nextSimulationTime;
    }
protected double updateHostsProcessing ( ) { double nextSimulationTime = Double . MAX_VALUE ; for ( final Host host : getHostList ( ) ) { final double time = host . updateProcessing ( getSimulation ( ) . clock ( ) ) ; nextSimulationTime = Math . min ( time , nextSimulationTime ) ; } final double minTimeBetweenEvents = getSimulation ( ) . getMinTimeBetweenEvents ( ) + 0.01 ; nextSimulationTime = Math . max ( nextSimulationTime , minTimeBetweenEvents ) ; if ( nextSimulationTime == Double . MAX_VALUE ) { return nextSimulationTime ; } return nextSimulationTime ; }
Updates the processing of all Hosts, that means
 that makes the processing of VMs running inside such hosts to be updated.
Updates the processing of all Hosts that means that makes the processing of VMs running inside such hosts to be updated .
// Guarantees a minimal interval before scheduling the event