/******************************************************************************* * Copyright (c) 2013 École Polytechnique de Montréal * * All rights reserved. This program and the accompanying materials are made * available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Geneviève Bastien - Initial implementation and API *******************************************************************************/ package fr.inria.linuxtools.tmf.core.event.matching; import java.util.List; import fr.inria.linuxtools.tmf.core.event.ITmfEvent; import fr.inria.linuxtools.tmf.core.event.matching.TmfEventMatching.MatchingType; import fr.inria.linuxtools.tmf.core.trace.ITmfTrace; /** * This interface describe a concrete method to match events. Typically it * manages for a given matching type what events/fields are used to match events * * @author Geneviève Bastien * @since 3.0 */ public interface ITmfMatchEventDefinition { /** * Returns a list of values for an event that uniquely identifies this event * * @param event * The event for which to compute the key * @return the unique key for this event */ List<Object> getUniqueField(ITmfEvent event); /** * Verifies whether a trace has all required events to match using this * class * * @param trace * The trace * @return Whether the trace has all required information */ boolean canMatchTrace(ITmfTrace trace); /** * Return all matching types this definition covers * * @return an array of matching types */ MatchingType[] getApplicableMatchingTypes(); }