cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/PowerExample.java
private List<PowerVm> createPowerVms() {
        final List<PowerVm> list = new ArrayList<>(VMS);
        for (int i = 0; i < VMS; i++) {
            PowerVm vm = new PowerVm(i, 1000, VM_PES);
            vm.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<PowerVm> createPowerVms() {
        final List<PowerVm> list = new ArrayList<>(VMS);
        for (int i = 0; i < VMS; i++) {
            PowerVm vm = new PowerVm(i, 1000, VM_PES);
            vm.setRam(512).setBw(1000).setSize(10000)
              .setCloudletScheduler(new CloudletSchedulerTimeShared());
            list.add(vm);
        }
        return list;
    }
private List < PowerVm > createPowerVms ( ) { final List < PowerVm > list = new ArrayList < > ( VMS ) ; for ( int i = 0 ; i < VMS ; i ++ ) { PowerVm vm = new PowerVm ( i , 1000 , VM_PES ) ; vm . setRam ( 512 ) . setBw ( 1000 ) . setSize ( 10000 ) . setCloudletScheduler ( new CloudletSchedulerTimeShared ( ) ) ; list . add ( vm ) ; } return list ; }
Creates a list of VMs.
Creates a list of VMs .