cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/listeners/CloudletListenersExample1.java
private Vm createVm(int id) {
        int mips = 1000;
        long size = 10000; // image size (MEGABYTE)
        int ram = 512; // vm memory (MEGABYTE)
        long bw = 1000;
        Vm vm = new VmSimple(id, mips, VM_PES_NUMBER)
            .setRam(ram).setBw(bw).setSize(size)
            .setCloudletScheduler(new CloudletSchedulerSpaceShared());

        return vm;
    }
/**
     * Creates a VM with pre-defined configuration.
     *
     * @param id the VM id
     * @return the created VM
     */
Creates a VM with pre-defined configuration.
@param id the VM id
@return the created VM
Creates a VM with pre - defined configuration . @param id the VM id @return the created VM
private Vm createVm(int id) {
        int mips = 1000;
        long size = 10000; 
        int ram = 512; 
        long bw = 1000;
        Vm vm = new VmSimple(id, mips, VM_PES_NUMBER)
            .setRam(ram).setBw(bw).setSize(size)
            .setCloudletScheduler(new CloudletSchedulerSpaceShared());
        return vm;
    }
private Vm createVm ( int id ) { int mips = 1000 ; long size = 10000 ; int ram = 512 ; long bw = 1000 ; Vm vm = new VmSimple ( id , mips , VM_PES_NUMBER ) . setRam ( ram ) . setBw ( bw ) . setSize ( size ) . setCloudletScheduler ( new CloudletSchedulerSpaceShared ( ) ) ; return vm ; }
Creates a VM with pre-defined configuration.
Creates a VM with pre - defined configuration .
// image size (MEGABYTE) // vm memory (MEGABYTE)