cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/autoscaling/VerticalVmCpuScalingExample.java
private void createCloudletListsWithDifferentDelays() {
        final int initialCloudletsNumber = (int)(CLOUDLETS/2.5);
        final int remainingCloudletsNumber = CLOUDLETS-initialCloudletsNumber;
        //Creates a List of Cloudlets that will start running immediately when the simulation starts
        for (int i = 0; i < initialCloudletsNumber; i++) {
            cloudletList.add(createCloudlet(CLOUDLETS_INITIAL_LENGTH+(i*1000), 2));
        }

        /*
         * Creates several Cloudlets, increasing the arrival delay and decreasing
         * the length of each one.
         * The progressing delay enables CPU usage to increase gradually along the arrival of
         * new Cloudlets (triggering CPU up scaling at some point in time).
         *
         * The decreasing length enables Cloudlets to finish in different times,
         * to gradually reduce CPU usage (triggering CPU down scaling at some point in time).
         *
         * Check the logs to understand how the scaling is working.
        */
        for (int i = 1; i <= remainingCloudletsNumber; i++) {
            cloudletList.add(createCloudlet(CLOUDLETS_INITIAL_LENGTH*2/i, 1,i*2));
        }
    }
/**
     * Creates lists of Cloudlets to be submitted to the broker with different delays,
     * simulating their arrivals at different times.
     * Adds all created Cloudlets to the {@link #cloudletList}.
     */
Creates lists of Cloudlets to be submitted to the broker with different delays,
simulating their arrivals at different times.
Adds all created Cloudlets to the  #cloudletList.
Creates lists of Cloudlets to be submitted to the broker with different delays simulating their arrivals at different times . Adds all created Cloudlets to the #cloudletList .
private void createCloudletListsWithDifferentDelays() {
        final int initialCloudletsNumber = (int)(CLOUDLETS/2.5);
        final int remainingCloudletsNumber = CLOUDLETS-initialCloudletsNumber;
        for (int i = 0; i < initialCloudletsNumber; i++) {
            cloudletList.add(createCloudlet(CLOUDLETS_INITIAL_LENGTH+(i*1000), 2));
        }
        /*
         * Creates several Cloudlets, increasing the arrival delay and decreasing
         * the length of each one.
         * The progressing delay enables CPU usage to increase gradually along the arrival of
         * new Cloudlets (triggering CPU up scaling at some point in time).
         *
         * The decreasing length enables Cloudlets to finish in different times,
         * to gradually reduce CPU usage (triggering CPU down scaling at some point in time).
         *
         * Check the logs to understand how the scaling is working.
        */
        for (int i = 1; i <= remainingCloudletsNumber; i++) {
            cloudletList.add(createCloudlet(CLOUDLETS_INITIAL_LENGTH*2/i, 1,i*2));
        }
    }
private void createCloudletListsWithDifferentDelays ( ) { final int initialCloudletsNumber = ( int ) ( CLOUDLETS / 2.5 ) ; final int remainingCloudletsNumber = CLOUDLETS - initialCloudletsNumber ; for ( int i = 0 ; i < initialCloudletsNumber ; i ++ ) { cloudletList . add ( createCloudlet ( CLOUDLETS_INITIAL_LENGTH + ( i * 1000 ) , 2 ) ) ; } /*
         * Creates several Cloudlets, increasing the arrival delay and decreasing
         * the length of each one.
         * The progressing delay enables CPU usage to increase gradually along the arrival of
         * new Cloudlets (triggering CPU up scaling at some point in time).
         *
         * The decreasing length enables Cloudlets to finish in different times,
         * to gradually reduce CPU usage (triggering CPU down scaling at some point in time).
         *
         * Check the logs to understand how the scaling is working.
        */ for ( int i = 1 ; i <= remainingCloudletsNumber ; i ++ ) { cloudletList . add ( createCloudlet ( CLOUDLETS_INITIAL_LENGTH * 2 / i , 1 , i * 2 ) ) ; } }
Creates lists of Cloudlets to be submitted to the broker with different delays,
 simulating their arrivals at different times.
Creates lists of Cloudlets to be submitted to the broker with different delays simulating their arrivals at different times .
//Creates a List of Cloudlets that will start running immediately when the simulation starts