cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/test/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerSpaceSharedTest.java
private CloudletSchedulerSpaceShared newSchedulerWithRunningCloudlets(long mips, int numberOfVmPes, int numberOfCloudlets, int numberOfCloudletPes) {
        final CloudletSchedulerSpaceShared instance = createCloudletSchedulerWithMipsList(numberOfVmPes, mips);

        for(int i = 0; i < numberOfCloudlets; i++) {
            final Cloudlet c = CloudletSimpleTest.createCloudlet(i, mips, numberOfCloudletPes);
            c.assignToDatacenter(Datacenter.NULL);
            instance.cloudletSubmit(c);
        }

        return instance;
    }
/**
     * Creates a scheduler with a list of running cloudlets.
     * @param mips the MIPS capacity of each PE from the VM's scheduler
     * @param numberOfVmPes number of PEs of the VM's scheduler
     * @param numberOfCloudlets number of Cloudlets to create
     * @param numberOfCloudletPes the number of PEs for each Cloudlet
     * @return the new scheduler
     */
Creates a scheduler with a list of running cloudlets.
Creates a scheduler with a list of running cloudlets .
private CloudletSchedulerSpaceShared newSchedulerWithRunningCloudlets(long mips, int numberOfVmPes, int numberOfCloudlets, int numberOfCloudletPes) {
        final CloudletSchedulerSpaceShared instance = createCloudletSchedulerWithMipsList(numberOfVmPes, mips);
        for(int i = 0; i < numberOfCloudlets; i++) {
            final Cloudlet c = CloudletSimpleTest.createCloudlet(i, mips, numberOfCloudletPes);
            c.assignToDatacenter(Datacenter.NULL);
            instance.cloudletSubmit(c);
        }
        return instance;
    }
private CloudletSchedulerSpaceShared newSchedulerWithRunningCloudlets ( long mips , int numberOfVmPes , int numberOfCloudlets , int numberOfCloudletPes ) { final CloudletSchedulerSpaceShared instance = createCloudletSchedulerWithMipsList ( numberOfVmPes , mips ) ; for ( int i = 0 ; i < numberOfCloudlets ; i ++ ) { final Cloudlet c = CloudletSimpleTest . createCloudlet ( i , mips , numberOfCloudletPes ) ; c . assignToDatacenter ( Datacenter . NULL ) ; instance . cloudletSubmit ( c ) ; } return instance ; }
Creates a scheduler with a list of running cloudlets.
Creates a scheduler with a list of running cloudlets .