1 /*******************************************************************************
2 * Copyright (c) 2016 Ecole Polytechnique de Montreal, Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 ******************************************************************************/
9 package org
.eclipse
.tracecompass
.tmf
.analysis
.xml
.core
.model
;
11 import org
.eclipse
.jdt
.annotation
.Nullable
;
12 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEvent
;
15 * Determines a true or false value for a given input. The input is an event and
16 * an optional scenarioInfo.
18 * @author Matthew Khouzam
21 public interface ITmfXmlCondition
{
24 * Test the result of the condition for an event
27 * The event on which to test the condition
29 * The active scenario details. Or <code>null</code> if there is
31 * @return Whether the condition is true or not
34 boolean test(ITmfEvent event
, @Nullable TmfXmlScenarioInfo scenarioInfo
);