cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/network/switches/AbstractSwitch.java
private void forwardPacketsToDownlinkSwitches() {
        for (final Switch destinationSwitch: downlinkSwitchPacketMap.keySet()) {
            final List<HostPacket> netPktList = getDownlinkSwitchPacketList(destinationSwitch);
            for (final HostPacket pkt : netPktList) {
                final double delay = networkDelayForPacketTransmission(pkt, downlinkBandwidth, netPktList);
                this.send(destinationSwitch.getId(), delay, CloudSimTags.NETWORK_EVENT_DOWN, pkt);
            }
            netPktList.clear();
        }
    }
/**
     * Gets the list of packets to be sent to each Downlink AbstractSwitch
     * and forward them.
     *
     * @see #downlinkSwitchPacketMap
     */
Gets the list of packets to be sent to each Downlink AbstractSwitch
and forward them.


Gets the list of packets to be sent to each Downlink AbstractSwitch and forward them .
private void forwardPacketsToDownlinkSwitches() {
        for (final Switch destinationSwitch: downlinkSwitchPacketMap.keySet()) {
            final List<HostPacket> netPktList = getDownlinkSwitchPacketList(destinationSwitch);
            for (final HostPacket pkt : netPktList) {
                final double delay = networkDelayForPacketTransmission(pkt, downlinkBandwidth, netPktList);
                this.send(destinationSwitch.getId(), delay, CloudSimTags.NETWORK_EVENT_DOWN, pkt);
            }
            netPktList.clear();
        }
    }
private void forwardPacketsToDownlinkSwitches ( ) { for ( final Switch destinationSwitch : downlinkSwitchPacketMap . keySet ( ) ) { final List < HostPacket > netPktList = getDownlinkSwitchPacketList ( destinationSwitch ) ; for ( final HostPacket pkt : netPktList ) { final double delay = networkDelayForPacketTransmission ( pkt , downlinkBandwidth , netPktList ) ; this . send ( destinationSwitch . getId ( ) , delay , CloudSimTags . NETWORK_EVENT_DOWN , pkt ) ; } netPktList . clear ( ) ; } }
Gets the list of packets to be sent to each Downlink AbstractSwitch
 and forward them.
Gets the list of packets to be sent to each Downlink AbstractSwitch and forward them .