1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
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
10 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.core
.analysis
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
18 * Interface for classes that can provide parameters to analysis when they are
21 * @author Geneviève Bastien
23 public interface IAnalysisParameterProvider
{
25 // --------------------------------------------------------
26 // Getters and setters
27 // --------------------------------------------------------
30 * Gets the name of the parameter provider
32 * @return Name of the parameter provider
37 * Gets the value of a parameter
40 * Name of the parameter
41 * @return The value of a parameter
43 Object
getParameter(String name
);
45 // --------------------------------------------------------
47 // --------------------------------------------------------
50 * Does this parameter provider apply to a given trace
53 * The trace to analyse
54 * @return whether the parameter provider applies
56 boolean appliesToTrace(ITmfTrace trace
);
59 * Register an analysis module to be notified when a parameter value is
63 * The listening analysis module
65 void registerModule(IAnalysisModule module
);
69 * Dispose of the parameter provider
73 default void dispose() {
74 /* override to perform any necessary cleanup */