cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/datacenters/DatacenterSimple.java
private void submitCloudletToVm(final Cloudlet cl, final boolean ack) {
        // time to transfer cloudlet files
        final double fileTransferTime = predictFileTransferTime(cl.getRequiredFiles());

        final CloudletScheduler scheduler = cl.getVm().getCloudletScheduler();
        final double estimatedFinishTime = scheduler.cloudletSubmit(cl, fileTransferTime);

        // if this cloudlet is in the exec queue
        if (estimatedFinishTime > 0.0 && !Double.isInfinite(estimatedFinishTime)) {
            send(getId(),
                getCloudletProcessingUpdateInterval(estimatedFinishTime),
                CloudSimTags.VM_UPDATE_CLOUDLET_PROCESSING_EVENT);
        }

        sendCloudletSubmitAckToBroker(ack, cl, true);
    }
/**
     * Submits a cloudlet to be executed inside its bind VM.
     *
     * @param cl the cloudlet to the executed
     * @param ack indicates if the Broker is waiting for an ACK after the Datacenter
     * receives the cloudlet submission
     */
Submits a cloudlet to be executed inside its bind VM.
@param cl the cloudlet to the executed
@param ack indicates if the Broker is waiting for an ACK after the Datacenter
receives the cloudlet submission
Submits a cloudlet to be executed inside its bind VM . @param cl the cloudlet to the executed @param ack indicates if the Broker is waiting for an ACK after the Datacenter receives the cloudlet submission
private void submitCloudletToVm(final Cloudlet cl, final boolean ack) {
        final double fileTransferTime = predictFileTransferTime(cl.getRequiredFiles());
        final CloudletScheduler scheduler = cl.getVm().getCloudletScheduler();
        final double estimatedFinishTime = scheduler.cloudletSubmit(cl, fileTransferTime);
        if (estimatedFinishTime > 0.0 && !Double.isInfinite(estimatedFinishTime)) {
            send(getId(),
                getCloudletProcessingUpdateInterval(estimatedFinishTime),
                CloudSimTags.VM_UPDATE_CLOUDLET_PROCESSING_EVENT);
        }
        sendCloudletSubmitAckToBroker(ack, cl, true);
    }
private void submitCloudletToVm ( final Cloudlet cl , final boolean ack ) { final double fileTransferTime = predictFileTransferTime ( cl . getRequiredFiles ( ) ) ; final CloudletScheduler scheduler = cl . getVm ( ) . getCloudletScheduler ( ) ; final double estimatedFinishTime = scheduler . cloudletSubmit ( cl , fileTransferTime ) ; if ( estimatedFinishTime > 0.0 && ! Double . isInfinite ( estimatedFinishTime ) ) { send ( getId ( ) , getCloudletProcessingUpdateInterval ( estimatedFinishTime ) , CloudSimTags . VM_UPDATE_CLOUDLET_PROCESSING_EVENT ) ; } sendCloudletSubmitAckToBroker ( ack , cl , true ) ; }
Submits a cloudlet to be executed inside its bind VM.
Submits a cloudlet to be executed inside its bind VM .
// time to transfer cloudlet files // if this cloudlet is in the exec queue