public boolean match(Sim_event ev)
    {
        if (ev == null) {
            return false;
        }

        boolean result = false;
        try
        {
            if ( tag_ == -1 || tag_ == ev.get_tag() )
            {
                Object obj = ev.get_data();
                if (obj instanceof Gridlet)
                {
                    Gridlet gl = (Gridlet) obj;
                    result = findGridlet(gl);
                }
            }
        }
        catch (Exception e) {
            result = false;
        }

        return result;
    }