cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/SlaMetricsWithoutNetworkExample.java
private List<Vm> createVM(DatacenterBroker broker, int numberOfPes, int numberOfVms) {
        //Creates a container to store VMs.
        List<Vm> list = new ArrayList<>(numberOfVms);

        //VM Parameters
        int vmid = 0;
        long size = 10000; //image size (MEGABYTE)
        int ram = 512; //vm memory (MEGABYTE)
        int mips = 1000;
        long bw = 1000;

        //create VMs with differents configurations
        for (int i = 0; i < numberOfVms; i++) {
            Vm vm = new VmSimple(
                    this.lastCreatedVmId++, mips, numberOfPes)
                    .setRam(ram).setBw(bw).setSize(size)
                    .setCloudletScheduler(new CloudletSchedulerTimeShared());
            list.add(vm);
        }

        return list;
    }
/**
     * Creates Vms
     *
     * @param broker broker
     * @param numberOfPes number of PEs for each VM to be created
     * @param numberOfVms number of VMs to create
     * @return list de vms
     */
Creates Vms
@param broker broker
@param numberOfPes number of PEs for each VM to be created
@param numberOfVms number of VMs to create
@return list de vms
Creates Vms @param broker broker @param numberOfPes number of PEs for each VM to be created @param numberOfVms number of VMs to create @return list de vms
private List<Vm> createVM(DatacenterBroker broker, int numberOfPes, int numberOfVms) {
        List<Vm> list = new ArrayList<>(numberOfVms);
        int vmid = 0;
        long size = 10000; 
        int ram = 512; 
        int mips = 1000;
        long bw = 1000;
        for (int i = 0; i < numberOfVms; i++) {
            Vm vm = new VmSimple(
                    this.lastCreatedVmId++, mips, numberOfPes)
                    .setRam(ram).setBw(bw).setSize(size)
                    .setCloudletScheduler(new CloudletSchedulerTimeShared());
            list.add(vm);
        }
        return list;
    }
private List < Vm > createVM ( DatacenterBroker broker , int numberOfPes , int numberOfVms ) { List < Vm > list = new ArrayList < > ( numberOfVms ) ; int vmid = 0 ; long size = 10000 ; int ram = 512 ; int mips = 1000 ; long bw = 1000 ; for ( int i = 0 ; i < numberOfVms ; i ++ ) { Vm vm = new VmSimple ( this . lastCreatedVmId ++ , mips , numberOfPes ) . setRam ( ram ) . setBw ( bw ) . setSize ( size ) . setCloudletScheduler ( new CloudletSchedulerTimeShared ( ) ) ; list . add ( vm ) ; } return list ; }
Creates Vms
 @param broker broker
 @param numberOfPes number of PEs for each VM to be created
 @param numberOfVms number of VMs to create
 @return list de vms
Creates Vms @param broker broker @param numberOfPes number of PEs for each VM to be created @param numberOfVms number of VMs to create @return list de vms
//Creates a container to store VMs. //VM Parameters //image size (MEGABYTE) //vm memory (MEGABYTE) //create VMs with differents configurations