cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/TestWithoutAlgorithmExample.java
private Vm createVm() {
        final int id = createsVms++;
        final int pes = VM_PES[(int) randVm.sample()];

        Vm vm = new VmSimple(id, VM_MIPS, pes)
                .setRam(512).setBw(1000).setSize(10000)
                .setCloudletScheduler(new CloudletSchedulerTimeShared());
        System.out.println("\n\t\t\t Vm: " + vm + " pes: " + pes);

        return vm;
    }
/**
     * Creates a VM object.
     *
     * @return the created VM
     */
Creates a VM object.
@return the created VM
Creates a VM object . @return the created VM
private Vm createVm() {
        final int id = createsVms++;
        final int pes = VM_PES[(int) randVm.sample()];
        Vm vm = new VmSimple(id, VM_MIPS, pes)
                .setRam(512).setBw(1000).setSize(10000)
                .setCloudletScheduler(new CloudletSchedulerTimeShared());
        System.out.println("\n\t\t\t Vm: " + vm + " pes: " + pes);
        return vm;
    }
private Vm createVm ( ) { final int id = createsVms ++ ; final int pes = VM_PES [ ( int ) randVm . sample ( ) ] ; Vm vm = new VmSimple ( id , VM_MIPS , pes ) . setRam ( 512 ) . setBw ( 1000 ) . setSize ( 10000 ) . setCloudletScheduler ( new CloudletSchedulerTimeShared ( ) ) ; System . out . println ( "\n\t\t\t Vm: " + vm + " pes: " + pes ) ; return vm ; }
Creates a VM object.
Creates a VM object .