cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/NetworkVmsWithMetricsExample.java
private void addSendTask(
            NetworkCloudlet sourceCloudlet,
            NetworkCloudlet destinationCloudlet) {
        CloudletSendTask task = new CloudletSendTask(sourceCloudlet.getTasks().size());
        task.setMemory(TASK_RAM);
        sourceCloudlet.addTask(task);
        for (int i = 0; i < NUMBER_OF_PACKETS_TO_SEND; i++) {
            task.addPacket(destinationCloudlet, PACKET_DATA_LENGTH_IN_BYTES);
        }
    }
/**
     * Adds a send task to list of tasks of the given {@link NetworkCloudlet}.
     *
     * @param sourceCloudlet the {@link NetworkCloudlet} to add the task to
     * @param destinationCloudlet the destination where to send or from which is
     * expected to receive data
     */
Adds a send task to list of tasks of the given  NetworkCloudlet.
@param sourceCloudlet the  NetworkCloudlet to add the task to
@param destinationCloudlet the destination where to send or from which is
expected to receive data
Adds a send task to list of tasks of the given NetworkCloudlet . @param sourceCloudlet the NetworkCloudlet to add the task to @param destinationCloudlet the destination where to send or from which is expected to receive data
private void addSendTask(
            NetworkCloudlet sourceCloudlet,
            NetworkCloudlet destinationCloudlet) {
        CloudletSendTask task = new CloudletSendTask(sourceCloudlet.getTasks().size());
        task.setMemory(TASK_RAM);
        sourceCloudlet.addTask(task);
        for (int i = 0; i < NUMBER_OF_PACKETS_TO_SEND; i++) {
            task.addPacket(destinationCloudlet, PACKET_DATA_LENGTH_IN_BYTES);
        }
    }
private void addSendTask ( NetworkCloudlet sourceCloudlet , NetworkCloudlet destinationCloudlet ) { CloudletSendTask task = new CloudletSendTask ( sourceCloudlet . getTasks ( ) . size ( ) ) ; task . setMemory ( TASK_RAM ) ; sourceCloudlet . addTask ( task ) ; for ( int i = 0 ; i < NUMBER_OF_PACKETS_TO_SEND ; i ++ ) { task . addPacket ( destinationCloudlet , PACKET_DATA_LENGTH_IN_BYTES ) ; } }
Adds a send task to list of tasks of the given {@link NetworkCloudlet}.
Adds a send task to list of tasks of the given { @link NetworkCloudlet } .