cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/DynamicCreationOfVmsAndCloudletsExample.java
private void submitNewVmsAndCloudletsToBroker(CloudletVmEventInfo eventInfo) {
        final int numberOfNewVms = 2;
        final int numberOfCloudletsByVm = 4;
        Log.printFormattedLine("\n\t#Cloudlet %d finished. Submitting %d new VMs to the broker\n",
            eventInfo.getCloudlet().getId(), numberOfNewVms);

        createAndSubmitVmsAndCloudlets(numberOfNewVms, numberOfCloudletsByVm);

    }
/**
     * Dynamically creates and submits a set of VMs to the broker when
     * the first cloudlet finishes.
     * @param eventInfo information about the fired event
     */
Dynamically creates and submits a set of VMs to the broker when
the first cloudlet finishes.
@param eventInfo information about the fired event
Dynamically creates and submits a set of VMs to the broker when the first cloudlet finishes . @param eventInfo information about the fired event
private void submitNewVmsAndCloudletsToBroker(CloudletVmEventInfo eventInfo) {
        final int numberOfNewVms = 2;
        final int numberOfCloudletsByVm = 4;
        Log.printFormattedLine("\n\t#Cloudlet %d finished. Submitting %d new VMs to the broker\n",
            eventInfo.getCloudlet().getId(), numberOfNewVms);
        createAndSubmitVmsAndCloudlets(numberOfNewVms, numberOfCloudletsByVm);
    }
private void submitNewVmsAndCloudletsToBroker ( CloudletVmEventInfo eventInfo ) { final int numberOfNewVms = 2 ; final int numberOfCloudletsByVm = 4 ; Log . printFormattedLine ( "\n\t#Cloudlet %d finished. Submitting %d new VMs to the broker\n" , eventInfo . getCloudlet ( ) . getId ( ) , numberOfNewVms ) ; createAndSubmitVmsAndCloudlets ( numberOfNewVms , numberOfCloudletsByVm ) ; }
Dynamically creates and submits a set of VMs to the broker when
 the first cloudlet finishes.
Dynamically creates and submits a set of VMs to the broker when the first cloudlet finishes .