cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerCompletelyFair.java
private List<CloudletExecutionInfo> preemptExecCloudletsWithExpiredVRuntimeAndMoveToWaitingList() {
        final Predicate<CloudletExecutionInfo> vrtReachedTimeSlice = c -> c.getVirtualRuntime() >= c.getTimeSlice();
        final List<CloudletExecutionInfo> expiredVrtCloudlets = getCloudletExecList().stream()
                .filter(vrtReachedTimeSlice)
                .collect(toList());

        expiredVrtCloudlets.forEach(c -> addCloudletToWaitingList(removeCloudletFromExecList(c)));
        return expiredVrtCloudlets;
    }
/**
     * Checks which Cloudlets in the execution list have an expired virtual
     * runtime (that have reached the execution time slice) and
     * preempts its execution, moving them to the waiting list.
     *
     * @return The list of preempted Cloudlets, that were removed from the execution list
     * and must have their virtual runtime (VRT) reset after the next cloudlets are put into
     * the execution list.
     *
     */
Checks which Cloudlets in the execution list have an expired virtual
runtime (that have reached the execution time slice) and
preempts its execution, moving them to the waiting list.

@return The list of preempted Cloudlets, that were removed from the execution list
and must have their virtual runtime (VRT) reset after the next cloudlets are put into
the execution list.
Checks which Cloudlets in the execution list have an expired virtual runtime ( that have reached the execution time slice ) and preempts its execution moving them to the waiting list . @return The list of preempted Cloudlets that were removed from the execution list and must have their virtual runtime ( VRT ) reset after the next cloudlets are put into the execution list .
private List<CloudletExecutionInfo> preemptExecCloudletsWithExpiredVRuntimeAndMoveToWaitingList() {
        final Predicate<CloudletExecutionInfo> vrtReachedTimeSlice = c -> c.getVirtualRuntime() >= c.getTimeSlice();
        final List<CloudletExecutionInfo> expiredVrtCloudlets = getCloudletExecList().stream()
                .filter(vrtReachedTimeSlice)
                .collect(toList());
        expiredVrtCloudlets.forEach(c -> addCloudletToWaitingList(removeCloudletFromExecList(c)));
        return expiredVrtCloudlets;
    }
private List < CloudletExecutionInfo > preemptExecCloudletsWithExpiredVRuntimeAndMoveToWaitingList ( ) { final Predicate < CloudletExecutionInfo > vrtReachedTimeSlice = c -> c . getVirtualRuntime ( ) >= c . getTimeSlice ( ) ; final List < CloudletExecutionInfo > expiredVrtCloudlets = getCloudletExecList ( ) . stream ( ) . filter ( vrtReachedTimeSlice ) . collect ( toList ( ) ) ; expiredVrtCloudlets . forEach ( c -> addCloudletToWaitingList ( removeCloudletFromExecList ( c ) ) ) ; return expiredVrtCloudlets ; }
Checks which Cloudlets in the execution list have an expired virtual
 runtime (that have reached the execution time slice) and
 preempts its execution, moving them to the waiting list.
Checks which Cloudlets in the execution list have an expired virtual runtime ( that have reached the execution time slice ) and preempts its execution moving them to the waiting list .