cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/network/switches/AbstractSwitch.java
protected void processPacketUp(SimEvent ev) {
        // packet coming from down level router has to be sent up.
        // check which switch to forward to and add packet in the switch list
        getSimulation().cancelAll(getId(), new PredicateType(CloudSimTags.NETWORK_EVENT_SEND));
        schedule(getId(), switchingDelay, CloudSimTags.NETWORK_EVENT_SEND);
    }
/**
     * Sends a packet to Datacenter connected through a uplink port.
     *
     * @param ev Event/packet to process
     */
Sends a packet to Datacenter connected through a uplink port.
@param ev Event/packet to process
Sends a packet to Datacenter connected through a uplink port . @param ev Event / packet to process
protected void processPacketUp(SimEvent ev) {
        getSimulation().cancelAll(getId(), new PredicateType(CloudSimTags.NETWORK_EVENT_SEND));
        schedule(getId(), switchingDelay, CloudSimTags.NETWORK_EVENT_SEND);
    }
protected void processPacketUp ( SimEvent ev ) { getSimulation ( ) . cancelAll ( getId ( ) , new PredicateType ( CloudSimTags . NETWORK_EVENT_SEND ) ) ; schedule ( getId ( ) , switchingDelay , CloudSimTags . NETWORK_EVENT_SEND ) ; }
Sends a packet to Datacenter connected through a uplink port.
Sends a packet to Datacenter connected through a uplink port .
// packet coming from down level router has to be sent up. // check which switch to forward to and add packet in the switch list