cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/listeners/VmListenersExample2.java
private Cloudlet createCloudlet(int id, Vm vm) {
        long length = 400000;  //in MI (Million Instructions)
        long fileSize = 300;
        long outputSize = 300;
        UtilizationModel utilizationModel = new UtilizationModelFull();
        return new CloudletSimple(id, length, VM_PES_NUMBER)
            .setFileSize(fileSize)
            .setOutputSize(outputSize)
            .setUtilizationModel(utilizationModel)
            .setVm(vm);
    }
/**
     * Creates a cloudlet with pre-defined configuration.
     *
     * @param id Cloudlet id
     * @param vm vm to run the cloudlet
     * @return the created cloudlet
     */
Creates a cloudlet with pre-defined configuration.
@param id Cloudlet id
@param vm vm to run the cloudlet
@return the created cloudlet
Creates a cloudlet with pre - defined configuration . @param id Cloudlet id @param vm vm to run the cloudlet @return the created cloudlet
private Cloudlet createCloudlet(int id, Vm vm) {
        long length = 400000;  
        long fileSize = 300;
        long outputSize = 300;
        UtilizationModel utilizationModel = new UtilizationModelFull();
        return new CloudletSimple(id, length, VM_PES_NUMBER)
            .setFileSize(fileSize)
            .setOutputSize(outputSize)
            .setUtilizationModel(utilizationModel)
            .setVm(vm);
    }
private Cloudlet createCloudlet ( int id , Vm vm ) { long length = 400000 ; long fileSize = 300 ; long outputSize = 300 ; UtilizationModel utilizationModel = new UtilizationModelFull ( ) ; return new CloudletSimple ( id , length , VM_PES_NUMBER ) . setFileSize ( fileSize ) . setOutputSize ( outputSize ) . setUtilizationModel ( utilizationModel ) . setVm ( vm ) ; }
Creates a cloudlet with pre-defined configuration.
Creates a cloudlet with pre - defined configuration .
//in MI (Million Instructions)