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

        boolean result = false;
        try {
            // find an event with a matching tag first
            if ( tag == ev.get_tag() ) {
                Object obj = ev.get_data();

                // if the event's data contains the correct data
                if (obj instanceof ReservationMessage) {
                	ReservationMessage msg = (ReservationMessage) obj;

                    // if the data contains the correct ID 
                    if (msg.getReservationID() == reservId) {
                        result = true;
                    }
                }
            }
        } catch (Exception e) {
            result = false;
        }

        return result;
    }