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

        return newList;
    }
/**
     * Creates a list of initial VMs in which each VM is able to scale horizontally
     * when it is overloaded.
     *
     * @param numberOfVms number of VMs to create
     * @return the list of scalable VMs
     * @see #createVerticalRamScalingForVm(Vm)
     */
Creates a list of initial VMs in which each VM is able to scale horizontally
when it is overloaded.

@param numberOfVms number of VMs to create
@return the list of scalable VMs
@see #createVerticalRamScalingForVm(Vm)
Creates a list of initial VMs in which each VM is able to scale horizontally when it is overloaded . @param numberOfVms number of VMs to create @return the list of scalable VMs @see #createVerticalRamScalingForVm ( Vm )
private List<Vm> createListOfScalableVms(final int numberOfVms) {
        List<Vm> newList = new ArrayList<>(numberOfVms);
        for (int i = 0; i < numberOfVms; i++) {
            Vm vm = createVm();
            createVerticalRamScalingForVm(vm);
            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 ( ) ; createVerticalRamScalingForVm ( vm ) ; newList . add ( vm ) ; } return newList ; }
Creates a list of initial VMs in which each VM is able to scale horizontally
 when it is overloaded.
Creates a list of initial VMs in which each VM is able to scale horizontally when it is overloaded .