cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/BasicFirstExample.java
private List<Vm> createVms() {
        final List<Vm> list = new ArrayList<>(VMS);
        for (int i = 0; i < VMS; i++) {
            Vm vm =
                new VmSimple(i, 1000, VM_PES)
                    .setRam(512).setBw(1000).setSize(10000)
                    .setCloudletScheduler(new CloudletSchedulerTimeShared());

            list.add(vm);
        }

        return list;
    }
/**
     * Creates a list of VMs.
     */
Creates a list of VMs.
Creates a list of VMs .
private List<Vm> createVms() {
        final List<Vm> list = new ArrayList<>(VMS);
        for (int i = 0; i < VMS; i++) {
            Vm vm =
                new VmSimple(i, 1000, VM_PES)
                    .setRam(512).setBw(1000).setSize(10000)
                    .setCloudletScheduler(new CloudletSchedulerTimeShared());
            list.add(vm);
        }
        return list;
    }
private List < Vm > createVms ( ) { final List < Vm > list = new ArrayList < > ( VMS ) ; for ( int i = 0 ; i < VMS ; i ++ ) { Vm vm = new VmSimple ( i , 1000 , VM_PES ) . setRam ( 512 ) . setBw ( 1000 ) . setSize ( 10000 ) . setCloudletScheduler ( new CloudletSchedulerTimeShared ( ) ) ; list . add ( vm ) ; } return list ; }
Creates a list of VMs.
Creates a list of VMs .