cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/brokers/DatacenterBrokerAbstract.java
@Override
    public void submitCloudletList(List<? extends Cloudlet> list) {
        sortCloudletsIfComparatorIsSet(list);
        setBrokerForEntities(list);
        lastSubmittedCloudlet =  setIdForEntitiesWithoutOne(list, lastSubmittedCloudlet);
        if(list.isEmpty()) {
            return;
        }
        setSimulationForCloudletUtilizationModels(list);
        cloudletWaitingList.addAll(list);

        if (!isStarted()) {
            return;
        }

        println(String.format(
            "%.2f: %s: List of %d Cloudlets submitted to the broker during simulation execution.",
            getSimulation().clock(), getName(), list.size()));

        //If there aren't more VMs to be created, then request Cloudlets creation
        if(vmWaitingList.isEmpty()){
            println(" Cloudlets creation request sent to Datacenter.");
            requestDatacentersToCreateWaitingCloudlets();
            notifyOnCreationOfWaitingVmsFinishListeners();
        } else
            println(String.format(
                " Waiting creation of %d VMs to send Cloudlets creation request to Datacenter.",
                vmWaitingList.size()));
    }
/**
     * {@inheritDoc}
     * <p>If the entity already started (the simulation is running),
     * the creation of previously submitted Cloudlets already was requested
     * by the {@link #start()} method that is called just once.
     * By this way, this method will immediately request the creation of these
     * just submitted Cloudlets if all submitted VMs were already created,
     * in order to allow Cloudlet creation after
     * the simulation has started. This avoid the developer to
     * dynamically create brokers just to create VMs or Cloudlets during
     * simulation execution.</p>
     * @param list {@inheritDoc}
     * @see #submitCloudletList(List, double)
     */
If the entity already started (the simulation is running),
the creation of previously submitted Cloudlets already was requested
by the  #start() method that is called just once.
By this way, this method will immediately request the creation of these
just submitted Cloudlets if all submitted VMs were already created,
in order to allow Cloudlet creation after
the simulation has started. This avoid the developer to
dynamically create brokers just to create VMs or Cloudlets during
simulation execution.
@param list
@see #submitCloudletList(List, double)
If the entity already started ( the simulation is running ) the creation of previously submitted Cloudlets already was requested by the #start () method that is called just once . By this way this method will immediately request the creation of these just submitted Cloudlets if all submitted VMs were already created in order to allow Cloudlet creation after the simulation has started . This avoid the developer to dynamically create brokers just to create VMs or Cloudlets during simulation execution . @param list @see #submitCloudletList ( List double )
@Override
    public void submitCloudletList(List<? extends Cloudlet> list) {
        sortCloudletsIfComparatorIsSet(list);
        setBrokerForEntities(list);
        lastSubmittedCloudlet =  setIdForEntitiesWithoutOne(list, lastSubmittedCloudlet);
        if(list.isEmpty()) {
            return;
        }
        setSimulationForCloudletUtilizationModels(list);
        cloudletWaitingList.addAll(list);
        if (!isStarted()) {
            return;
        }
        println(String.format(
            "%.2f: %s: List of %d Cloudlets submitted to the broker during simulation execution.",
            getSimulation().clock(), getName(), list.size()));
        if(vmWaitingList.isEmpty()){
            println(" Cloudlets creation request sent to Datacenter.");
            requestDatacentersToCreateWaitingCloudlets();
            notifyOnCreationOfWaitingVmsFinishListeners();
        } else
            println(String.format(
                " Waiting creation of %d VMs to send Cloudlets creation request to Datacenter.",
                vmWaitingList.size()));
    }
@ Override public void submitCloudletList ( List < ? extends Cloudlet > list ) { sortCloudletsIfComparatorIsSet ( list ) ; setBrokerForEntities ( list ) ; lastSubmittedCloudlet = setIdForEntitiesWithoutOne ( list , lastSubmittedCloudlet ) ; if ( list . isEmpty ( ) ) { return ; } setSimulationForCloudletUtilizationModels ( list ) ; cloudletWaitingList . addAll ( list ) ; if ( ! isStarted ( ) ) { return ; } println ( String . format ( "%.2f: %s: List of %d Cloudlets submitted to the broker during simulation execution." , getSimulation ( ) . clock ( ) , getName ( ) , list . size ( ) ) ) ; if ( vmWaitingList . isEmpty ( ) ) { println ( " Cloudlets creation request sent to Datacenter." ) ; requestDatacentersToCreateWaitingCloudlets ( ) ; notifyOnCreationOfWaitingVmsFinishListeners ( ) ; } else println ( String . format ( " Waiting creation of %d VMs to send Cloudlets creation request to Datacenter." , vmWaitingList . size ( ) ) ) ; }
{@inheritDoc}
 <p>If the entity already started (the simulation is running),
 the creation of previously submitted Cloudlets already was requested
 by the {@link #start()} method that is called just once.
{ @inheritDoc } <p > If the entity already started ( the simulation is running ) the creation of previously submitted Cloudlets already was requested by the { @link #start () } method that is called just once .
//If there aren't more VMs to be created, then request Cloudlets creation