cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/tasktimecompletion/CloudletTaskTimeCompletionWorkLoadWithoutMinimizationExperiment.java
private Vm createVm() {
        DatacenterBroker broker0 = getFirstBroker();
        final int id = createsVms++;
        final int i = (int) (randVm.sample() * VM_PES.length);
        final int pes = VM_PES[i];

        Vm vm = new VmSimple(id, 1000, pes)
                .setRam(512).setBw(1000).setSize(10000)
                .setCloudletScheduler(new CloudletSchedulerCompletelyFair());
        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() {
        DatacenterBroker broker0 = getFirstBroker();
        final int id = createsVms++;
        final int i = (int) (randVm.sample() * VM_PES.length);
        final int pes = VM_PES[i];
        Vm vm = new VmSimple(id, 1000, pes)
                .setRam(512).setBw(1000).setSize(10000)
                .setCloudletScheduler(new CloudletSchedulerCompletelyFair());
        return vm;
    }
private Vm createVm ( ) { DatacenterBroker broker0 = getFirstBroker ( ) ; final int id = createsVms ++ ; final int i = ( int ) ( randVm . sample ( ) * VM_PES . length ) ; final int pes = VM_PES [ i ] ; Vm vm = new VmSimple ( id , 1000 , pes ) . setRam ( 512 ) . setBw ( 1000 ) . setSize ( 10000 ) . setCloudletScheduler ( new CloudletSchedulerCompletelyFair ( ) ) ; return vm ; }
Creates a Vm object.
Creates a Vm object .