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


Gets the list of packets to be sent to each Uplink Switch and forward them .
private void forwardPacketsToUplinkSwitches() {
        for (final Switch destinationSwitch : uplinkSwitchPacketMap.keySet()) {
            final List<HostPacket> packetList = getUplinkSwitchPacketList(destinationSwitch);
            for(final HostPacket pkt: packetList) {
                final double delay = networkDelayForPacketTransmission(pkt, uplinkBandwidth, packetList);
                this.send(destinationSwitch.getId(), delay, CloudSimTags.NETWORK_EVENT_UP, pkt);
            }
            packetList.clear();
        }
    }
private void forwardPacketsToUplinkSwitches ( ) { for ( final Switch destinationSwitch : uplinkSwitchPacketMap . keySet ( ) ) { final List < HostPacket > packetList = getUplinkSwitchPacketList ( destinationSwitch ) ; for ( final HostPacket pkt : packetList ) { final double delay = networkDelayForPacketTransmission ( pkt , uplinkBandwidth , packetList ) ; this . send ( destinationSwitch . getId ( ) , delay , CloudSimTags . NETWORK_EVENT_UP , pkt ) ; } packetList . clear ( ) ; } }
Gets the list of packets to be sent to each Uplink Switch
 and forward them.
Gets the list of packets to be sent to each Uplink Switch and forward them .