cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/core/CloudSim.java
private void finishSimulation() {
        // Allow all entities to exit their body method
        if (!abortRequested) {
            entities.stream()
                .filter(e -> e.getState() != SimEntity.State.FINISHED)
                .forEach(SimEntity::run);
        }

        entities.forEach(SimEntity::shutdownEntity);
        running = false;
    }
/**
     * Finishes execution of running entities before terminating the simulation.
     */
Finishes execution of running entities before terminating the simulation.
Finishes execution of running entities before terminating the simulation .
private void finishSimulation() {
        if (!abortRequested) {
            entities.stream()
                .filter(e -> e.getState() != SimEntity.State.FINISHED)
                .forEach(SimEntity::run);
        }
        entities.forEach(SimEntity::shutdownEntity);
        running = false;
    }
private void finishSimulation ( ) { if ( ! abortRequested ) { entities . stream ( ) . filter ( e -> e . getState ( ) != SimEntity . State . FINISHED ) . forEach ( SimEntity :: run ) ; } entities . forEach ( SimEntity :: shutdownEntity ) ; running = false ; }
Finishes execution of running entities before terminating the simulation.
Finishes execution of running entities before terminating the simulation .
// Allow all entities to exit their body method