cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/MultipleBrokers2.java
private void dynamicCloudletArrival(EventInfo e) {
        if((int)e.getTime() != 35) {
            return;
        }

        final Cloudlet c = createCloudlet(cloudletList.size(), CLOUDLET_LENGTH);
        final DatacenterBroker broker = brokers.get(1);
        System.out.printf("%.2f: \t\t\tDynamically submitting %s to %s\n", e.getTime(),  c, broker);
        broker.submitCloudlet(c);
    }
/**
     * Dynamically submits a cloudlet during simulation execution.
     * This method is called every time when the simulation clock
     * advances.
     * The created Cloudlet is submitted only at a specific simulation time.
     * <p>Realize the interval in which this method is called is defined
     * according to the {@link #SCHEDULING_INTERVAL}.</p>
     *
     * <p>Different from the {@link #submitCloudletWithDelay()} method
     * with when the simulation starts the created Cloudlet will be waiting
     * to start executing, this method is called dynamically during
     * simulation execution. It defines internally, when
     * we want the Cloudlet to be submitted.
     * The method is called by the {@link CloudSim} object
     * because an {@link EventListener} was added to be
     * notified when the simulation clock changes.
     * This way, it allows, between lots of possibilities,
     * to define specific conditions when a new Cloudlet should be submitted
     * to a broker.
     * </p>
     *
     * <p>The dynamic way of submitting Cloudlets is more flexible because it allows you to define
     * any condition you want inside, and that condition may include any other git lvariables
     * besides the time.</p>
     *
     * @param e information about the generated event
     * @return
     * @see Datacenter#getSchedulingInterval()
     * @see CloudSim#addOnClockTickListener(EventListener)
     */
Dynamically submits a cloudlet during simulation execution.
This method is called every time when the simulation clock
advances.
The created Cloudlet is submitted only at a specific simulation time.
Realize the interval in which this method is called is defined
according to the  #SCHEDULING_INTERVAL.

Different from the  #submitCloudletWithDelay() method
with when the simulation starts the created Cloudlet will be waiting
to start executing, this method is called dynamically during
simulation execution. It defines internally, when
we want the Cloudlet to be submitted.
The method is called by the  CloudSim object
because an  EventListener was added to be
notified when the simulation clock changes.
This way, it allows, between lots of possibilities,
to define specific conditions when a new Cloudlet should be submitted
to a broker.

The dynamic way of submitting Cloudlets is more flexible because it allows you to define
any condition you want inside, and that condition may include any other git lvariables
besides the time.


Dynamically submits a cloudlet during simulation execution . This method is called every time when the simulation clock advances . The created Cloudlet is submitted only at a specific simulation time . Realize the interval in which this method is called is defined according to the #SCHEDULING_INTERVAL . Different from the #submitCloudletWithDelay () method with when the simulation starts the created Cloudlet will be waiting to start executing this method is called dynamically during simulation execution . It defines internally when we want the Cloudlet to be submitted . The method is called by the CloudSim object because an EventListener was added to be notified when the simulation clock changes . This way it allows between lots of possibilities to define specific conditions when a new Cloudlet should be submitted to a broker . The dynamic way of submitting Cloudlets is more flexible because it allows you to define any condition you want inside and that condition may include any other git lvariables besides the time .
private void dynamicCloudletArrival(EventInfo e) {
        if((int)e.getTime() != 35) {
            return;
        }
        final Cloudlet c = createCloudlet(cloudletList.size(), CLOUDLET_LENGTH);
        final DatacenterBroker broker = brokers.get(1);
        System.out.printf("%.2f: \t\t\tDynamically submitting %s to %s\n", e.getTime(),  c, broker);
        broker.submitCloudlet(c);
    }
private void dynamicCloudletArrival ( EventInfo e ) { if ( ( int ) e . getTime ( ) != 35 ) { return ; } final Cloudlet c = createCloudlet ( cloudletList . size ( ) , CLOUDLET_LENGTH ) ; final DatacenterBroker broker = brokers . get ( 1 ) ; System . out . printf ( "%.2f: \t\t\tDynamically submitting %s to %s\n" , e . getTime ( ) , c , broker ) ; broker . submitCloudlet ( c ) ; }
Dynamically submits a cloudlet during simulation execution.
Dynamically submits a cloudlet during simulation execution .