cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/cloudlets/network/CloudletReceiveTask.java
public void receivePacket(VmPacket packet) {
        packet.setReceiveTime(getCloudlet().getSimulation().clock());
        this.packetsReceived.add(packet);
        boolean finished = this.packetsReceived.size() >= numberOfExpectedPacketsToReceive;
        setFinished(finished);
    }
/**
     * Receives a packet sent from a {@link CloudletSendTask}
     * and add it the the received packet list.
     *
     * @param packet the packet received
     */
Receives a packet sent from a  CloudletSendTask
and add it the the received packet list.

@param packet the packet received
Receives a packet sent from a CloudletSendTask and add it the the received packet list . @param packet the packet received
public void receivePacket(VmPacket packet) {
        packet.setReceiveTime(getCloudlet().getSimulation().clock());
        this.packetsReceived.add(packet);
        boolean finished = this.packetsReceived.size() >= numberOfExpectedPacketsToReceive;
        setFinished(finished);
    }
public void receivePacket ( VmPacket packet ) { packet . setReceiveTime ( getCloudlet ( ) . getSimulation ( ) . clock ( ) ) ; this . packetsReceived . add ( packet ) ; boolean finished = this . packetsReceived . size ( ) >= numberOfExpectedPacketsToReceive ; setFinished ( finished ) ; }
Receives a packet sent from a {@link CloudletSendTask}
 and add it the the received packet list.
Receives a packet sent from a { @link CloudletSendTask } and add it the the received packet list .