cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/network/PacketSchedulerSimple.java
private void addPacketsToBeSentFromVm(NetworkCloudlet sourceCloudlet) {
        final CloudletSendTask dataTask = (CloudletSendTask)sourceCloudlet.getCurrentTask();
        Log.println(Log.Level.DEBUG, getClass(), sourceCloudlet.getSimulation().clock(),
                "%d pkts added to be sent from cloudlet %d in VM %d",
                dataTask.getPacketsToSend().size(), sourceCloudlet.getId(),
                sourceCloudlet.getVm().getId());

        vmPacketsToSend.addAll(dataTask.getPacketsToSend(sourceCloudlet.getSimulation().clock()));
        scheduleNextTaskIfCurrentIsFinished(sourceCloudlet);
    }
/**
     * Gets the list of packets to be sent from a given source
     * cloudlet and adds this list to the list of all packets to send
     * from the VM hosting that cloudlet.
     *
     * @param sourceCloudlet cloudlet to get the list of packets to send
     */
Gets the list of packets to be sent from a given source
cloudlet and adds this list to the list of all packets to send
from the VM hosting that cloudlet.

@param sourceCloudlet cloudlet to get the list of packets to send
Gets the list of packets to be sent from a given source cloudlet and adds this list to the list of all packets to send from the VM hosting that cloudlet . @param sourceCloudlet cloudlet to get the list of packets to send
private void addPacketsToBeSentFromVm(NetworkCloudlet sourceCloudlet) {
        final CloudletSendTask dataTask = (CloudletSendTask)sourceCloudlet.getCurrentTask();
        Log.println(Log.Level.DEBUG, getClass(), sourceCloudlet.getSimulation().clock(),
                "%d pkts added to be sent from cloudlet %d in VM %d",
                dataTask.getPacketsToSend().size(), sourceCloudlet.getId(),
                sourceCloudlet.getVm().getId());
        vmPacketsToSend.addAll(dataTask.getPacketsToSend(sourceCloudlet.getSimulation().clock()));
        scheduleNextTaskIfCurrentIsFinished(sourceCloudlet);
    }
private void addPacketsToBeSentFromVm ( NetworkCloudlet sourceCloudlet ) { final CloudletSendTask dataTask = ( CloudletSendTask ) sourceCloudlet . getCurrentTask ( ) ; Log . println ( Log . Level . DEBUG , getClass ( ) , sourceCloudlet . getSimulation ( ) . clock ( ) , "%d pkts added to be sent from cloudlet %d in VM %d" , dataTask . getPacketsToSend ( ) . size ( ) , sourceCloudlet . getId ( ) , sourceCloudlet . getVm ( ) . getId ( ) ) ; vmPacketsToSend . addAll ( dataTask . getPacketsToSend ( sourceCloudlet . getSimulation ( ) . clock ( ) ) ) ; scheduleNextTaskIfCurrentIsFinished ( sourceCloudlet ) ; }
Gets the list of packets to be sent from a given source
 cloudlet and adds this list to the list of all packets to send
 from the VM hosting that cloudlet.
Gets the list of packets to be sent from a given source cloudlet and adds this list to the list of all packets to send from the VM hosting that cloudlet .