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
.tests
.stubs
.analysis
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.analysis
.TmfAbstractAnalysisParamProvider
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
17 import org
.eclipse
.tracecompass
.tmf
.tests
.stubs
.trace
.TmfTraceStub
;
20 * Test parameter provider for the PARAM_TEST that would apply only to
21 * CtfTmfTrace (though it is associated with an analysis that supports all trace
24 * @author Geneviève Bastien
26 public class TestAnalysisParameterProvider
extends TmfAbstractAnalysisParamProvider
{
28 private int fValue
= 10;
31 public String
getName() {
32 return "test parameter provider";
36 public Object
getParameter(String name
) {
37 if (name
.equals(TestAnalysis
.PARAM_TEST
)) {
44 public boolean appliesToTrace(ITmfTrace trace
) {
45 return (trace
instanceof TmfTraceStub
);
49 * Sets a new value for the parameter
54 public void setValue(int value
) {
56 notifyParameterChanged(TestAnalysis
.PARAM_TEST
);