private void processEvent(Sim_event ev)
    {
        if (ev == null) {
            return;
        }

        switch (ev.get_tag())
        {
            case GridSimTags.SCHEDULER_ENQUE:
                this.enque(ev);
                break;

            case INTERNAL_DEQUEUE:
                this.internalDequeue(ev);
                break;

            case DEQUEUE_PACKET:
                this.dequeue(ev);
                break;

            default:
                System.out.println(super.get_name() +
                        ".processEvent: Warning - unknown tag name.");
                break;
        }
    }