cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerAbstract.java
private void changeStatusOfCloudlet(CloudletExecutionInfo cloudlet, Status currentStatus, Status newStatus) {
        if ((currentStatus == Status.INEXEC || currentStatus == Status.READY) && cloudlet.getCloudlet().isFinished()) {
            cloudletFinish(cloudlet);
        } else {
            cloudlet.setCloudletStatus(newStatus);
        }

        switch (newStatus) {
            case PAUSED:
                cloudletPausedList.add(cloudlet);
                break;
        }
    }
/**
     * Changes the status of a given cloudlet.
     *
     * @param cloudlet      Cloudlet to set its status
     * @param currentStatus the current cloudlet status
     * @param newStatus     the new status to set
     * @todo @author manoelcampos The parameter currentStatus only exists
     * because apparently, the cloudlet status is not being accordingly changed
     * along the simulation run.
     */
Changes the status of a given cloudlet.
Changes the status of a given cloudlet .
private void changeStatusOfCloudlet(CloudletExecutionInfo cloudlet, Status currentStatus, Status newStatus) {
        if ((currentStatus == Status.INEXEC || currentStatus == Status.READY) && cloudlet.getCloudlet().isFinished()) {
            cloudletFinish(cloudlet);
        } else {
            cloudlet.setCloudletStatus(newStatus);
        }
        switch (newStatus) {
            case PAUSED:
                cloudletPausedList.add(cloudlet);
                break;
        }
    }
private void changeStatusOfCloudlet ( CloudletExecutionInfo cloudlet , Status currentStatus , Status newStatus ) { if ( ( currentStatus == Status . INEXEC || currentStatus == Status . READY ) && cloudlet . getCloudlet ( ) . isFinished ( ) ) { cloudletFinish ( cloudlet ) ; } else { cloudlet . setCloudletStatus ( newStatus ) ; } switch ( newStatus ) { case PAUSED : cloudletPausedList . add ( cloudlet ) ; break ; } }
Changes the status of a given cloudlet.
Changes the status of a given cloudlet .