cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/testbeds/linuxscheduler/CloudletSchedulerRunner.java
protected void afterExperimentFinish(T experiment) {
        final Consumer<DatacenterBroker> addExperimentStatsToLists = broker -> {
            Double average = broker.getCloudletFinishedList().stream()
                    .mapToDouble(Cloudlet::getActualCpuTime)
                    .average()
                    .orElse(0.0);
            cloudletsCompletionTimeMeans.add(average);
            cloudletsNumber.add((double)broker.getCloudletFinishedList().size());
        };

        experiment.getBrokerList().stream().findFirst().ifPresent(addExperimentStatsToLists);
    }
/**
     * Method automatically called after every experiment finishes running. It
     * performs some post-processing such as collection of data for statistic
     * analysis.
     *
     * @param experiment the finished experiment
     */
Method automatically called after every experiment finishes running. It
performs some post-processing such as collection of data for statistic
analysis.

@param experiment the finished experiment
Method automatically called after every experiment finishes running . It performs some post - processing such as collection of data for statistic analysis . @param experiment the finished experiment
protected void afterExperimentFinish(T experiment) {
        final Consumer<DatacenterBroker> addExperimentStatsToLists = broker -> {
            Double average = broker.getCloudletFinishedList().stream()
                    .mapToDouble(Cloudlet::getActualCpuTime)
                    .average()
                    .orElse(0.0);
            cloudletsCompletionTimeMeans.add(average);
            cloudletsNumber.add((double)broker.getCloudletFinishedList().size());
        };
        experiment.getBrokerList().stream().findFirst().ifPresent(addExperimentStatsToLists);
    }
protected void afterExperimentFinish ( T experiment ) { final Consumer < DatacenterBroker > addExperimentStatsToLists = broker -> { Double average = broker . getCloudletFinishedList ( ) . stream ( ) . mapToDouble ( Cloudlet :: getActualCpuTime ) . average ( ) . orElse ( 0.0 ) ; cloudletsCompletionTimeMeans . add ( average ) ; cloudletsNumber . add ( ( double ) broker . getCloudletFinishedList ( ) . size ( ) ) ; } ; experiment . getBrokerList ( ) . stream ( ) . findFirst ( ) . ifPresent ( addExperimentStatsToLists ) ; }
Method automatically called after every experiment finishes running.
Method automatically called after every experiment finishes running .