1 /*******************************************************************************
2 * Copyright (c) 2009 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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.signal
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.TmfExperiment
;
19 * New experiment has been selected
21 * @param <T> The experiment event type
24 * @author Francois Chouinard
26 public class TmfExperimentSelectedSignal
<T
extends ITmfEvent
> extends TmfSignal
{
28 private final TmfExperiment
<T
> fExperiment
;
34 * Object sending this signal
36 * The experiment that was selected
38 public TmfExperimentSelectedSignal(Object source
, TmfExperiment
<T
> experiment
) {
40 fExperiment
= experiment
;
44 * @return The experiment
46 public TmfExperiment
<?
extends ITmfEvent
> getExperiment() {
51 @SuppressWarnings("nls")
52 public String
toString() {
53 return "[TmfExperimentSelectedSignal (" + fExperiment
.getName() + ")]";