cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/core/CloudSim.java
private void runClockTickAndProcessFutureEventQueue() {
        executeRunnableEntities();

        if (future.isEmpty()) {
            running = false;
            printMessage("Simulation: No more future events");
        } else {
            // If there are more future events, then deal with them
            future.stream().findFirst().ifPresent(this::processAllFutureEventsHappeningAtSameTimeOfTheFirstOne);
        }
    }
/**
     * Run one tick of the simulation, processing and removing the
     * events in the {@link #future future event queue}.
     */
Run one tick of the simulation, processing and removing the
events in the  #future future event queue.
Run one tick of the simulation processing and removing the events in the #future future event queue .
private void runClockTickAndProcessFutureEventQueue() {
        executeRunnableEntities();
        if (future.isEmpty()) {
            running = false;
            printMessage("Simulation: No more future events");
        } else {
            future.stream().findFirst().ifPresent(this::processAllFutureEventsHappeningAtSameTimeOfTheFirstOne);
        }
    }
private void runClockTickAndProcessFutureEventQueue ( ) { executeRunnableEntities ( ) ; if ( future . isEmpty ( ) ) { running = false ; printMessage ( "Simulation: No more future events" ) ; } else { future . stream ( ) . findFirst ( ) . ifPresent ( this :: processAllFutureEventsHappeningAtSameTimeOfTheFirstOne ) ; } }
Run one tick of the simulation, processing and removing the
 events in the {@link #future future event queue}.
Run one tick of the simulation processing and removing the events in the { @link #future future event queue } .
// If there are more future events, then deal with them