cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/autoscaling/VerticalVmCpuScalingExample.java
private Cloudlet createCloudlet(long length, int numberOfPes, double delay) {
        final int id = createdCloudlets++;
        //randomly selects a length for the cloudlet
        UtilizationModel utilizationFull = new UtilizationModelFull();
        Cloudlet cl = new CloudletSimple(id, length, numberOfPes);
        cl.setFileSize(1024)
          .setOutputSize(1024)
          .setUtilizationModel(utilizationFull)
          .setSubmissionDelay(delay);
        return cl;
    }
/**
     * Creates a single Cloudlet.
     *
     * @param length the length of the cloudlet to create.
     * @param numberOfPes the number of PEs the Cloudlets requires.
     * @param delay the delay that defines the arrival time of the Cloudlet at the Cloud infrastructure.
     * @return the created Cloudlet
     */
Creates a single Cloudlet.
@param length the length of the cloudlet to create.
@param numberOfPes the number of PEs the Cloudlets requires.
@param delay the delay that defines the arrival time of the Cloudlet at the Cloud infrastructure.
@return the created Cloudlet
Creates a single Cloudlet . @param length the length of the cloudlet to create . @param numberOfPes the number of PEs the Cloudlets requires . @param delay the delay that defines the arrival time of the Cloudlet at the Cloud infrastructure . @return the created Cloudlet
private Cloudlet createCloudlet(long length, int numberOfPes, double delay) {
        final int id = createdCloudlets++;
        UtilizationModel utilizationFull = new UtilizationModelFull();
        Cloudlet cl = new CloudletSimple(id, length, numberOfPes);
        cl.setFileSize(1024)
          .setOutputSize(1024)
          .setUtilizationModel(utilizationFull)
          .setSubmissionDelay(delay);
        return cl;
    }
private Cloudlet createCloudlet ( long length , int numberOfPes , double delay ) { final int id = createdCloudlets ++ ; UtilizationModel utilizationFull = new UtilizationModelFull ( ) ; Cloudlet cl = new CloudletSimple ( id , length , numberOfPes ) ; cl . setFileSize ( 1024 ) . setOutputSize ( 1024 ) . setUtilizationModel ( utilizationFull ) . setSubmissionDelay ( delay ) ; return cl ; }
Creates a single Cloudlet.
Creates a single Cloudlet .
//randomly selects a length for the cloudlet