public Event removeTimer(int entity)
    {
        int timerIndex = -1;
        Event timer = null;
        
        for (int i = 0; i < data.size(); i++)
        {
            if ((((Event)(data.elementAt(i))).getType() == 
                                           NetworkSimulator.TIMER_INTERRUPT) &&
                (((Event)(data.elementAt(i))).getEntity() == entity))
            {
                timerIndex = i;
                break;
            }
        }
        
        if (timerIndex != -1)
        {
            timer = (Event)(data.elementAt(timerIndex));
            data.removeElement(timer);
        }
        
        return timer;
            
    }