cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/TestWithoutAlgorithmExample.java
private void createNewCloudlets(EventInfo eventInfo) {
        final long time = (long) eventInfo.getTime();
        if (time > 0 && time % CLOUDLETS_CREATION_INTERVAL == 0 && time <= 50) {
            final int numberOfCloudlets = 4;
            Log.printFormattedLine("\t#Creating %d Cloudlets at time %d.", numberOfCloudlets, time);
            List<Cloudlet> newCloudlets = new ArrayList<>(numberOfCloudlets);
            for (int i = 0; i < numberOfCloudlets; i++) {
                Cloudlet cloudlet = createCloudlet();
                cloudletList.add(cloudlet);
                newCloudlets.add(cloudlet);
            }

            broker0.submitCloudletList(newCloudlets);
        }
    }
/**
     * Creates new Cloudlets at every 10 seconds up to the 50th simulation
     * second. A reference to this method is set as the {@link EventListener} to
     * the {@link Simulation#addOnClockTickListener(EventListener)}. The method
     * is then called every time the simulation clock advances.
     *
     * @param eventInfo the information about the OnClockTick event that has
     * happened
     */
Creates new Cloudlets at every 10 seconds up to the 50th simulation
second. A reference to this method is set as the  EventListener to
the  Simulation#addOnClockTickListener(EventListener). The method
is then called every time the simulation clock advances.

@param eventInfo the information about the OnClockTick event that has
happened
Creates new Cloudlets at every 10 seconds up to the 50th simulation second . A reference to this method is set as the EventListener to the Simulation#addOnClockTickListener ( EventListener ) . The method is then called every time the simulation clock advances . @param eventInfo the information about the OnClockTick event that has happened
private void createNewCloudlets(EventInfo eventInfo) {
        final long time = (long) eventInfo.getTime();
        if (time > 0 && time % CLOUDLETS_CREATION_INTERVAL == 0 && time <= 50) {
            final int numberOfCloudlets = 4;
            Log.printFormattedLine("\t#Creating %d Cloudlets at time %d.", numberOfCloudlets, time);
            List<Cloudlet> newCloudlets = new ArrayList<>(numberOfCloudlets);
            for (int i = 0; i < numberOfCloudlets; i++) {
                Cloudlet cloudlet = createCloudlet();
                cloudletList.add(cloudlet);
                newCloudlets.add(cloudlet);
            }
            broker0.submitCloudletList(newCloudlets);
        }
    }
private void createNewCloudlets ( EventInfo eventInfo ) { final long time = ( long ) eventInfo . getTime ( ) ; if ( time > 0 && time % CLOUDLETS_CREATION_INTERVAL == 0 && time <= 50 ) { final int numberOfCloudlets = 4 ; Log . printFormattedLine ( "\t#Creating %d Cloudlets at time %d." , numberOfCloudlets , time ) ; List < Cloudlet > newCloudlets = new ArrayList < > ( numberOfCloudlets ) ; for ( int i = 0 ; i < numberOfCloudlets ; i ++ ) { Cloudlet cloudlet = createCloudlet ( ) ; cloudletList . add ( cloudlet ) ; newCloudlets . add ( cloudlet ) ; } broker0 . submitCloudletList ( newCloudlets ) ; } }
Creates new Cloudlets at every 10 seconds up to the 50th simulation
 second.
Creates new Cloudlets at every 10 seconds up to the 50th simulation second .