cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/autoscaling/VerticalVmCpuScalingExample.java
private List<Vm> createListOfScalableVms(final int numberOfVms) {
        List<Vm> newList = new ArrayList<>(numberOfVms);
        for (int i = 0; i < numberOfVms; i++) {
            Vm vm = createVm();
            vm.setPeVerticalScaling(createVerticalPeScaling());
            newList.add(vm);
        }

        return newList;
    }
/**
     * Creates a list of initial VMs in which each VM is able to scale vertically
     * when it is over or underloaded.
     *
     * @param numberOfVms number of VMs to create
     * @return the list of scalable VMs
     * @see #createVerticalPeScaling()
     */
Creates a list of initial VMs in which each VM is able to scale vertically
when it is over or underloaded.

@param numberOfVms number of VMs to create
@return the list of scalable VMs
@see #createVerticalPeScaling()
Creates a list of initial VMs in which each VM is able to scale vertically when it is over or underloaded . @param numberOfVms number of VMs to create @return the list of scalable VMs @see #createVerticalPeScaling ()
private List<Vm> createListOfScalableVms(final int numberOfVms) {
        List<Vm> newList = new ArrayList<>(numberOfVms);
        for (int i = 0; i < numberOfVms; i++) {
            Vm vm = createVm();
            vm.setPeVerticalScaling(createVerticalPeScaling());
            newList.add(vm);
        }
        return newList;
    }
private List < Vm > createListOfScalableVms ( final int numberOfVms ) { List < Vm > newList = new ArrayList < > ( numberOfVms ) ; for ( int i = 0 ; i < numberOfVms ; i ++ ) { Vm vm = createVm ( ) ; vm . setPeVerticalScaling ( createVerticalPeScaling ( ) ) ; newList . add ( vm ) ; } return newList ; }
Creates a list of initial VMs in which each VM is able to scale vertically
 when it is over or underloaded.
Creates a list of initial VMs in which each VM is able to scale vertically when it is over or underloaded .