cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/core/CloudSimEntity.java
protected void send(int destEntityId, double delay, int cloudSimTag, Object data) {
        if (destEntityId < 0) {
            return;
        }

        // if delay is -ve, then it doesn't make sense. So resets to 0.0
        if (delay < 0) {
            delay = 0;
        }

        if (Double.isInfinite(delay)) {
            throw new IllegalArgumentException("The specified delay is infinite value");
        }

        if (destEntityId < 0) {
            Log.printConcatLine(getName(), ".send(): Error - " + "invalid entity id ", destEntityId);
            return;
        }

        final int srcId = getId();
        if (destEntityId != srcId) {// only delay messages between different entities
            delay += getNetworkDelay(srcId, destEntityId);
        }

        schedule(destEntityId, delay, cloudSimTag, data);
    }
/**
     * Sends an event/message to another entity by <tt>delaying</tt> the
     * simulation time from the current time, with a tag representing the event
     * type.
     *
     * @param destEntityId    the id number of the destination entity
     * @param delay       How many seconds after the current simulation time the event should be sent.
     *                    If delay is a negative number, then it will be changed to 0
     * @param cloudSimTag an user-defined number representing the type of an
     *                    event/message
     * @param data        A reference to data to be sent with the event
     * @pre entityID > 0
     * @pre delay >= 0.0
     * @pre data != null
     * @post $none
     */
Sends an event/message to another entity by delaying the
simulation time from the current time, with a tag representing the event
type.

@param destEntityId    the id number of the destination entity
@param delay       How many seconds after the current simulation time the event should be sent.
Sends an event / message to another entity by delaying the simulation time from the current time with a tag representing the event type . @param destEntityId the id number of the destination entity @param delay How many seconds after the current simulation time the event should be sent .
protected void send(int destEntityId, double delay, int cloudSimTag, Object data) {
        if (destEntityId < 0) {
            return;
        }
        if (delay < 0) {
            delay = 0;
        }
        if (Double.isInfinite(delay)) {
            throw new IllegalArgumentException("The specified delay is infinite value");
        }
        if (destEntityId < 0) {
            Log.printConcatLine(getName(), ".send(): Error - " + "invalid entity id ", destEntityId);
            return;
        }
        final int srcId = getId();
        if (destEntityId != srcId) {
            delay += getNetworkDelay(srcId, destEntityId);
        }
        schedule(destEntityId, delay, cloudSimTag, data);
    }
protected void send ( int destEntityId , double delay , int cloudSimTag , Object data ) { if ( destEntityId < 0 ) { return ; } if ( delay < 0 ) { delay = 0 ; } if ( Double . isInfinite ( delay ) ) { throw new IllegalArgumentException ( "The specified delay is infinite value" ) ; } if ( destEntityId < 0 ) { Log . printConcatLine ( getName ( ) , ".send(): Error - " + "invalid entity id " , destEntityId ) ; return ; } final int srcId = getId ( ) ; if ( destEntityId != srcId ) { delay += getNetworkDelay ( srcId , destEntityId ) ; } schedule ( destEntityId , delay , cloudSimTag , data ) ; }
Sends an event/message to another entity by <tt>delaying</tt> the
 simulation time from the current time, with a tag representing the event
 type.
Sends an event / message to another entity by <tt > delaying< / tt > the simulation time from the current time with a tag representing the event type .
// if delay is -ve, then it doesn't make sense. So resets to 0.0 // only delay messages between different entities