cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudbus/cloudsim/examples/network/applications/NetworkVmsExample1.java
private List<NetworkVm> createAndSubmitVMs(DatacenterBroker broker) {
        final List<NetworkVm> list = new ArrayList<>();
        for (int i = 0; i < NUMBER_OF_HOSTS; i++) {
            NetworkVm vm = createVm(i);
            list.add(vm);
        }

        broker.submitVmList(list);
        return list;
    }
/**
     * Creates a list of virtual machines in a Datacenter for a given broker and
     * submit the list to the broker.
     *
     * @param broker The broker that will own the created VMs
     * @return the list of created VMs
     */
Creates a list of virtual machines in a Datacenter for a given broker and
submit the list to the broker.

@param broker The broker that will own the created VMs
@return the list of created VMs
Creates a list of virtual machines in a Datacenter for a given broker and submit the list to the broker . @param broker The broker that will own the created VMs @return the list of created VMs
private List<NetworkVm> createAndSubmitVMs(DatacenterBroker broker) {
        final List<NetworkVm> list = new ArrayList<>();
        for (int i = 0; i < NUMBER_OF_HOSTS; i++) {
            NetworkVm vm = createVm(i);
            list.add(vm);
        }
        broker.submitVmList(list);
        return list;
    }
private List < NetworkVm > createAndSubmitVMs ( DatacenterBroker broker ) { final List < NetworkVm > list = new ArrayList < > ( ) ; for ( int i = 0 ; i < NUMBER_OF_HOSTS ; i ++ ) { NetworkVm vm = createVm ( i ) ; list . add ( vm ) ; } broker . submitVmList ( list ) ; return list ; }
Creates a list of virtual machines in a Datacenter for a given broker and
 submit the list to the broker.
Creates a list of virtual machines in a Datacenter for a given broker and submit the list to the broker .