cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/hosts/network/NetworkHost.java
private void collectListOfPacketsToSendFromVm(Vm sourceVm) {
        final PacketScheduler packetScheduler = getVmPacketScheduler(sourceVm);
        for (final VmPacket vmPkt : packetScheduler.getVmPacketsToSend()) {
            collectPacketToSendFromVm(vmPkt);
        }

        packetScheduler.clearVmPacketsToSend();
    }
/**
     * Collects all packets of a specific packet list from a Vm
     * in order to get them together to be sent.
     *
     * @param sourceVm the VM from where the packets will be sent
     */
Collects all packets of a specific packet list from a Vm
in order to get them together to be sent.

@param sourceVm the VM from where the packets will be sent
Collects all packets of a specific packet list from a Vm in order to get them together to be sent . @param sourceVm the VM from where the packets will be sent
private void collectListOfPacketsToSendFromVm(Vm sourceVm) {
        final PacketScheduler packetScheduler = getVmPacketScheduler(sourceVm);
        for (final VmPacket vmPkt : packetScheduler.getVmPacketsToSend()) {
            collectPacketToSendFromVm(vmPkt);
        }
        packetScheduler.clearVmPacketsToSend();
    }
private void collectListOfPacketsToSendFromVm ( Vm sourceVm ) { final PacketScheduler packetScheduler = getVmPacketScheduler ( sourceVm ) ; for ( final VmPacket vmPkt : packetScheduler . getVmPacketsToSend ( ) ) { collectPacketToSendFromVm ( vmPkt ) ; } packetScheduler . clearVmPacketsToSend ( ) ; }
Collects all packets of a specific packet list from a Vm
 in order to get them together to be sent.
Collects all packets of a specific packet list from a Vm in order to get them together to be sent .