cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/listeners/VmListenersExample2.java
private void createAndSubmitVmsAndCloudlets() {
        for(int i = 0; i < NUMBER_OF_VMS; i++){
            Vm vm = createVm(i);
            this.vmList.add(vm);

            Cloudlet cloudlet = createCloudlet(i, vm);
            this.cloudletList.add(cloudlet);
        }

        this.broker.submitVmList(vmList);
        this.broker.submitCloudletList(cloudletList);
    }
/**
     * Creates VMs and the cloudlets for each one, submitting
     * the list of VMs and Cloudlets to the broker.
     *
     * @see #createVm(int)
     */
Creates VMs and the cloudlets for each one, submitting
the list of VMs and Cloudlets to the broker.


Creates VMs and the cloudlets for each one submitting the list of VMs and Cloudlets to the broker .
private void createAndSubmitVmsAndCloudlets() {
        for(int i = 0; i < NUMBER_OF_VMS; i++){
            Vm vm = createVm(i);
            this.vmList.add(vm);
            Cloudlet cloudlet = createCloudlet(i, vm);
            this.cloudletList.add(cloudlet);
        }
        this.broker.submitVmList(vmList);
        this.broker.submitCloudletList(cloudletList);
    }
private void createAndSubmitVmsAndCloudlets ( ) { for ( int i = 0 ; i < NUMBER_OF_VMS ; i ++ ) { Vm vm = createVm ( i ) ; this . vmList . add ( vm ) ; Cloudlet cloudlet = createCloudlet ( i , vm ) ; this . cloudletList . add ( cloudlet ) ; } this . broker . submitVmList ( vmList ) ; this . broker . submitCloudletList ( cloudletList ) ; }
Creates VMs and the cloudlets for each one, submitting
 the list of VMs and Cloudlets to the broker.
Creates VMs and the cloudlets for each one submitting the list of VMs and Cloudlets to the broker .