cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/test/java/org/cloudsimplus/integrationtests/CheckHostAvailableMipsDynamicUtilizationTest.java
private void onUpdateVmsProcessing(HostUpdatesVmsProcessingEventInfo evt) {
        final double expectedAvailableHostMips =
               HOST_MIPS * HOST_PES * utilizationModel.getUtilization(evt.getTime());

        Log.printConcatLine(
            "- onUpdateVmProcessing at time ", evt.getTime(), " host ", evt.getHost().getId(),
            " available mips: ", evt.getHost().getAvailableMips(),
            " expected availability: ", expectedAvailableHostMips);

        assertEquals("The amount of Host available HOST_MIPS was not as expected.",
                 expectedAvailableHostMips, evt.getHost().getAvailableMips(), 0);
    }
/**
     * A lambda function used by the {@link Host#addOnUpdateProcessingListener(EventListener)}
     * that will be called every time a host updates the processing of its VMs.
     * It checks if the amount of available Host CPU is as expected,
     * every time a host updates the processing of all its VMs.
     *
     * @param evt
     */
A lambda function used by the  Host#addOnUpdateProcessingListener(EventListener)
that will be called every time a host updates the processing of its VMs.
It checks if the amount of available Host CPU is as expected,
every time a host updates the processing of all its VMs.

@param evt
A lambda function used by the Host#addOnUpdateProcessingListener ( EventListener ) that will be called every time a host updates the processing of its VMs . It checks if the amount of available Host CPU is as expected every time a host updates the processing of all its VMs . @param evt
private void onUpdateVmsProcessing(HostUpdatesVmsProcessingEventInfo evt) {
        final double expectedAvailableHostMips =
               HOST_MIPS * HOST_PES * utilizationModel.getUtilization(evt.getTime());
        Log.printConcatLine(
            "- onUpdateVmProcessing at time ", evt.getTime(), " host ", evt.getHost().getId(),
            " available mips: ", evt.getHost().getAvailableMips(),
            " expected availability: ", expectedAvailableHostMips);
        assertEquals("The amount of Host available HOST_MIPS was not as expected.",
                 expectedAvailableHostMips, evt.getHost().getAvailableMips(), 0);
    }
private void onUpdateVmsProcessing ( HostUpdatesVmsProcessingEventInfo evt ) { final double expectedAvailableHostMips = HOST_MIPS * HOST_PES * utilizationModel . getUtilization ( evt . getTime ( ) ) ; Log . printConcatLine ( "- onUpdateVmProcessing at time " , evt . getTime ( ) , " host " , evt . getHost ( ) . getId ( ) , " available mips: " , evt . getHost ( ) . getAvailableMips ( ) , " expected availability: " , expectedAvailableHostMips ) ; assertEquals ( "The amount of Host available HOST_MIPS was not as expected." , expectedAvailableHostMips , evt . getHost ( ) . getAvailableMips ( ) , 0 ) ; }
A lambda function used by the {@link Host#addOnUpdateProcessingListener(EventListener)}
 that will be called every time a host updates the processing of its VMs.
A lambda function used by the { @link Host#addOnUpdateProcessingListener ( EventListener ) } that will be called every time a host updates the processing of its VMs .