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
.internal
.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
20 public interface ITmfXmlCondition
{
23 * Test the result of the condition for an event
26 * The event on which to test the condition
28 * The active scenario details. Or <code>null</code> if there is
30 * @return Whether the condition is true or not
32 boolean test(ITmfEvent event
, @Nullable TmfXmlScenarioInfo scenarioInfo
);