cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/testbeds/ExperimentRunner.java
@Override
    public void run() {
        setupInternal();

        printSimulationParameters();

        Log.disable();
        try {
            experimentsStartTime = System.currentTimeMillis();
            for (int i = 0; i < getSimulationRuns(); i++) {
                if (isVerbose()) {
                    System.out.print(((i + 1) % 100 == 0 ? String.format(". Run #%d\n", i + 1) : "."));
                }
                createExperiment(i).run();
            }
            System.out.println();
            experimentsFinishTime = (System.currentTimeMillis() - experimentsStartTime) / 1000;
        } finally {
            Log.enable();
        }

        final Map<String, List<Double>> metricsMap = createMetricsMap();
        System.out.println("\n------------------------------------------------------------------");
        metricsMap.entrySet().forEach(this::computeAndPrintFinalResults);
        Log.enable();
        System.out.printf("\nExperiments finished in %d seconds!\n", getExperimentsFinishTime());
    }
/**
     * Setups and starts the execution of all experiments.
     */
Setups and starts the execution of all experiments.
Setups and starts the execution of all experiments .
@Override
    public void run() {
        setupInternal();
        printSimulationParameters();
        Log.disable();
        try {
            experimentsStartTime = System.currentTimeMillis();
            for (int i = 0; i < getSimulationRuns(); i++) {
                if (isVerbose()) {
                    System.out.print(((i + 1) % 100 == 0 ? String.format(". Run #%d\n", i + 1) : "."));
                }
                createExperiment(i).run();
            }
            System.out.println();
            experimentsFinishTime = (System.currentTimeMillis() - experimentsStartTime) / 1000;
        } finally {
            Log.enable();
        }
        final Map<String, List<Double>> metricsMap = createMetricsMap();
        System.out.println("\n------------------------------------------------------------------");
        metricsMap.entrySet().forEach(this::computeAndPrintFinalResults);
        Log.enable();
        System.out.printf("\nExperiments finished in %d seconds!\n", getExperimentsFinishTime());
    }
@ Override public void run ( ) { setupInternal ( ) ; printSimulationParameters ( ) ; Log . disable ( ) ; try { experimentsStartTime = System . currentTimeMillis ( ) ; for ( int i = 0 ; i < getSimulationRuns ( ) ; i ++ ) { if ( isVerbose ( ) ) { System . out . print ( ( ( i + 1 ) % 100 == 0 ? String . format ( ". Run #%d\n" , i + 1 ) : "." ) ) ; } createExperiment ( i ) . run ( ) ; } System . out . println ( ) ; experimentsFinishTime = ( System . currentTimeMillis ( ) - experimentsStartTime ) / 1000 ; } finally { Log . enable ( ) ; } final Map < String , List < Double > > metricsMap = createMetricsMap ( ) ; System . out . println ( "\n------------------------------------------------------------------" ) ; metricsMap . entrySet ( ) . forEach ( this :: computeAndPrintFinalResults ) ; Log . enable ( ) ; System . out . printf ( "\nExperiments finished in %d seconds!\n" , getExperimentsFinishTime ( ) ) ; }
Setups and starts the execution of all experiments.
Setups and starts the execution of all experiments .