1 /*******************************************************************************
2 * Copyright (c) 2013 É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
.linuxtools
.tmf
.core
.analysis
;
16 * Abstract class for parameter providers, implements methods and
17 * functionalities to warn the analysis module of parameter changed
19 * @author Geneviève Bastien
22 public abstract class TmfAbstractAnalysisParamProvider
implements IAnalysisParameterProvider
{
25 * The module registered with this provider
27 private IAnalysisModule fModule
;
30 public void registerModule(IAnalysisModule module
) {
32 throw new IllegalArgumentException();
38 * Gets the analysis module
40 * @return the {@link IAnalysisModule} associated with this provider
42 protected IAnalysisModule
getModule() {
47 * Notify the registered module that the said parameter has a new value. The
48 * analysis module will decide what to do with this information
51 * Name of the modified parameter
53 protected void notifyParameterChanged(String name
) {
54 if (fModule
!= null) {
55 fModule
.notifyParameterChanged(name
);