Commit | Line | Data |
---|---|---|
8c8bf09f ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 Ericsson | |
3 | * | |
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 | * Contributors: | |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.signal; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.event.TmfEvent; | |
16 | import org.eclipse.linuxtools.tmf.experiment.TmfExperiment; | |
17 | ||
18 | /** | |
19 | * <b><u>TmfExperimentSelectedSignal</u></b> | |
20 | * <p> | |
21 | * TODO: Implement me. Please. | |
22 | */ | |
23 | public class TmfExperimentSelectedSignal<T extends TmfEvent> extends TmfSignal { | |
24 | ||
25 | private final TmfExperiment<T> fExperiment; | |
26 | ||
27 | public TmfExperimentSelectedSignal(Object source, TmfExperiment<T> experiment) { | |
28 | super(source); | |
29 | fExperiment = experiment; | |
30 | } | |
31 | ||
32 | public TmfExperiment<? extends TmfEvent> getExperiment() { | |
33 | return fExperiment; | |
34 | } | |
35 | ||
36 | @Override | |
3b38ea61 | 37 | @SuppressWarnings("nls") |
8c8bf09f ASL |
38 | public String toString() { |
39 | return "[TmfExperimentSelectedSignal (" + fExperiment.getName() + ")]"; | |
40 | } | |
41 | } |