cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/network/switches/AbstractSwitch.java
protected void processPacketDown(SimEvent ev) {
        // packet coming from up level router
        // has to send downward.
        // check which switch to forward to
        // add packet in the switch list
        // add packet in the host list
        // int src=ev.getSource();
        getSimulation().cancelAll(getId(), new PredicateType(CloudSimTags.NETWORK_EVENT_SEND));
        schedule(getId(), getSwitchingDelay(), CloudSimTags.NETWORK_EVENT_SEND);
    }
/**
     * Sends a packet to Datacenter connected through a downlink port.
     *
     * @param ev Event/packet to process
     */
Sends a packet to Datacenter connected through a downlink port.
@param ev Event/packet to process
Sends a packet to Datacenter connected through a downlink port . @param ev Event / packet to process
protected void processPacketDown(SimEvent ev) {
        getSimulation().cancelAll(getId(), new PredicateType(CloudSimTags.NETWORK_EVENT_SEND));
        schedule(getId(), getSwitchingDelay(), CloudSimTags.NETWORK_EVENT_SEND);
    }
protected void processPacketDown ( SimEvent ev ) { getSimulation ( ) . cancelAll ( getId ( ) , new PredicateType ( CloudSimTags . NETWORK_EVENT_SEND ) ) ; schedule ( getId ( ) , getSwitchingDelay ( ) , CloudSimTags . NETWORK_EVENT_SEND ) ; }
Sends a packet to Datacenter connected through a downlink port.
Sends a packet to Datacenter connected through a downlink port .
// packet coming from up level router // has to send downward. // check which switch to forward to // add packet in the switch list // add packet in the host list // int src=ev.getSource();