cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/NetworkVmsWithMetricsExample.java
private void addReceiveTask(NetworkCloudlet cloudlet, NetworkCloudlet sourceCloudlet) {
        CloudletReceiveTask task = new CloudletReceiveTask(
                cloudlet.getTasks().size(), sourceCloudlet.getVm());
        task.setMemory(TASK_RAM);
        task.setNumberOfExpectedPacketsToReceive(NUMBER_OF_PACKETS_TO_SEND);
        cloudlet.addTask(task);
    }
/**
     * Adds a receive task to list of tasks of the given
     * {@link NetworkCloudlet}.
     *
     * @param cloudlet the {@link NetworkCloudlet} that the task will belong to
     * @param sourceCloudlet the cloudlet where it is expected to receive
     * packets from
     */
Adds a receive task to list of tasks of the given
NetworkCloudlet.

@param cloudlet the  NetworkCloudlet that the task will belong to
@param sourceCloudlet the cloudlet where it is expected to receive
packets from
Adds a receive task to list of tasks of the given NetworkCloudlet . @param cloudlet the NetworkCloudlet that the task will belong to @param sourceCloudlet the cloudlet where it is expected to receive packets from
private void addReceiveTask(NetworkCloudlet cloudlet, NetworkCloudlet sourceCloudlet) {
        CloudletReceiveTask task = new CloudletReceiveTask(
                cloudlet.getTasks().size(), sourceCloudlet.getVm());
        task.setMemory(TASK_RAM);
        task.setNumberOfExpectedPacketsToReceive(NUMBER_OF_PACKETS_TO_SEND);
        cloudlet.addTask(task);
    }
private void addReceiveTask ( NetworkCloudlet cloudlet , NetworkCloudlet sourceCloudlet ) { CloudletReceiveTask task = new CloudletReceiveTask ( cloudlet . getTasks ( ) . size ( ) , sourceCloudlet . getVm ( ) ) ; task . setMemory ( TASK_RAM ) ; task . setNumberOfExpectedPacketsToReceive ( NUMBER_OF_PACKETS_TO_SEND ) ; cloudlet . addTask ( task ) ; }
Adds a receive task to list of tasks of the given
 {@link NetworkCloudlet}.
Adds a receive task to list of tasks of the given { @link NetworkCloudlet } .