cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/core/CloudSimEntity.java
public SimEvent selectEvent(Predicate<SimEvent> p) {
        if (!simulation.isRunning()) {
            return null;
        }

        return simulation.select(id, p);
    }
/**
     * Extracts the first event matching a predicate waiting in the entity's
     * deferred queue.
     *
     * @param p The event selection predicate
     * @return the simulation event
     */
Extracts the first event matching a predicate waiting in the entity's
deferred queue.

@param p The event selection predicate
@return the simulation event
Extracts the first event matching a predicate waiting in the entity ' s deferred queue . @param p The event selection predicate @return the simulation event
public SimEvent selectEvent(Predicate<SimEvent> p) {
        if (!simulation.isRunning()) {
            return null;
        }
        return simulation.select(id, p);
    }
public SimEvent selectEvent ( Predicate < SimEvent > p ) { if ( ! simulation . isRunning ( ) ) { return null ; } return simulation . select ( id , p ) ; }
Extracts the first event matching a predicate waiting in the entity's
 deferred queue.
Extracts the first event matching a predicate waiting in the entity ' s deferred queue .