cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/MultipleBrokers1.java
private List<Cloudlet> createAndSubmitCloudlets(DatacenterBroker broker, final int initialLength) {
        final List<Cloudlet> list = new ArrayList<>(CLOUDLETS);
        for (int i = 1; i <= CLOUDLETS; i++) {
            int length = initialLength + CLOUDLET_LENGTH * i;
            Cloudlet cloudlet = createCloudlet(cloudletList.size() + i - 1, length);
            list.add(cloudlet);
        }

        broker.submitCloudletList(list);

        return list;
    }
/**
     * Creates a list of Cloudlets.
     */
Creates a list of Cloudlets.
Creates a list of Cloudlets .
private List<Cloudlet> createAndSubmitCloudlets(DatacenterBroker broker, final int initialLength) {
        final List<Cloudlet> list = new ArrayList<>(CLOUDLETS);
        for (int i = 1; i <= CLOUDLETS; i++) {
            int length = initialLength + CLOUDLET_LENGTH * i;
            Cloudlet cloudlet = createCloudlet(cloudletList.size() + i - 1, length);
            list.add(cloudlet);
        }
        broker.submitCloudletList(list);
        return list;
    }
private List < Cloudlet > createAndSubmitCloudlets ( DatacenterBroker broker , final int initialLength ) { final List < Cloudlet > list = new ArrayList < > ( CLOUDLETS ) ; for ( int i = 1 ; i <= CLOUDLETS ; i ++ ) { int length = initialLength + CLOUDLET_LENGTH * i ; Cloudlet cloudlet = createCloudlet ( cloudletList . size ( ) + i - 1 , length ) ; list . add ( cloudlet ) ; } broker . submitCloudletList ( list ) ; return list ; }
Creates a list of Cloudlets.
Creates a list of Cloudlets .