cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/NetworkVmsWithMetricsExample.java
private List<NetworkVm> createVM(DatacenterBroker broker, int vms) {
        //Creates a container to store VMs. This list is passed to the broker later
        List<NetworkVm> list = new ArrayList<>(vms);
        //VM Parameters
        long size = 10000; //image size (MEGABYTE)
        int ram = 512; //vm memory (MEGABYTE)
        int mips = 1000;
        long bw = 1000;
        int pesNumber = 2; //number of cpus

        for (int i = 0; i < vms; i++) {
            NetworkVm vm = new NetworkVm(i, mips, pesNumber);
            vm.setRam(ram)
                    .setBw(bw)
                    .setSize(size)
                    .setCloudletScheduler(new CloudletSchedulerTimeShared());
            list.add(vm);
        }
        return list;
    }
/**
     * Create NetworkVms
     *
     * @param broker the broker that acts on behalf of a user
     * @param vms number of VMs to create
     * @return list de vms
     */
Create NetworkVms
@param broker the broker that acts on behalf of a user
@param vms number of VMs to create
@return list de vms
Create NetworkVms @param broker the broker that acts on behalf of a user @param vms number of VMs to create @return list de vms
private List<NetworkVm> createVM(DatacenterBroker broker, int vms) {
        List<NetworkVm> list = new ArrayList<>(vms);
        long size = 10000; 
        int ram = 512; 
        int mips = 1000;
        long bw = 1000;
        int pesNumber = 2; 
        for (int i = 0; i < vms; i++) {
            NetworkVm vm = new NetworkVm(i, mips, pesNumber);
            vm.setRam(ram)
                    .setBw(bw)
                    .setSize(size)
                    .setCloudletScheduler(new CloudletSchedulerTimeShared());
            list.add(vm);
        }
        return list;
    }
private List < NetworkVm > createVM ( DatacenterBroker broker , int vms ) { List < NetworkVm > list = new ArrayList < > ( vms ) ; long size = 10000 ; int ram = 512 ; int mips = 1000 ; long bw = 1000 ; int pesNumber = 2 ; for ( int i = 0 ; i < vms ; i ++ ) { NetworkVm vm = new NetworkVm ( i , mips , pesNumber ) ; vm . setRam ( ram ) . setBw ( bw ) . setSize ( size ) . setCloudletScheduler ( new CloudletSchedulerTimeShared ( ) ) ; list . add ( vm ) ; } return list ; }
Create NetworkVms
 @param broker the broker that acts on behalf of a user
 @param vms number of VMs to create
 @return list de vms
Create NetworkVms @param broker the broker that acts on behalf of a user @param vms number of VMs to create @return list de vms
//Creates a container to store VMs. This list is passed to the broker later //VM Parameters //image size (MEGABYTE) //vm memory (MEGABYTE) //number of cpus