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

        simulation.wait(this, p);
        state = State.WAITING;
    }
/**
     * Waits for an event matching a specific predicate. This method does not
     * check the entity's deferred queue.
     *
     * @param p The predicate to match
     */
Waits for an event matching a specific predicate. This method does not
check the entity's deferred queue.

@param p The predicate to match
Waits for an event matching a specific predicate . This method does not check the entity ' s deferred queue . @param p The predicate to match
public void waitForEvent(Predicate<SimEvent> p) {
        if (!simulation.isRunning()) {
            return;
        }
        simulation.wait(this, p);
        state = State.WAITING;
    }
public void waitForEvent ( Predicate < SimEvent > p ) { if ( ! simulation . isRunning ( ) ) { return ; } simulation . wait ( this , p ) ; state = State . WAITING ; }
Waits for an event matching a specific predicate.
Waits for an event matching a specific predicate .