protected void processpacket(SimEvent ev){
  CloudSim.cancelAll(getId(),new PredicateType(CloudSimTags.Network_Event_UP));
  schedule(getId(),switching_delay,CloudSimTags.Network_Event_UP);
  pktlist.add((NetworkPacket)ev.getData());
}

protected void processpacket ( SimEvent ev ) { CloudSim . cancelAll ( getId ( ) , new PredicateType ( CloudSimTags . Network_Event_UP ) ) ; schedule ( getId ( ) , switching_delay , CloudSimTags . Network_Event_UP ) ; pktlist . add ( ( NetworkPacket ) ev . getData ( ) ) ; }
process a received packet .
