Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfExperimentUpdatedSignal.java
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.core.signal;
14
15 import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment;
16
17 /**
18 * Current experiment has been updated.
19 *
20 * @version 1.0
21 * @author Francois Chouinard
22 */
23 public class TmfExperimentUpdatedSignal extends TmfSignal {
24
25 private final TmfExperiment fExperiment;
26
27 /**
28 * Constructor
29 *
30 * @param source
31 * Object sending this signal
32 * @param experiment
33 * The experiment that was updated
34 */
35 public TmfExperimentUpdatedSignal(Object source, TmfExperiment experiment) {
36 super(source);
37 fExperiment = experiment;
38 }
39
40 /**
41 * @return The experiment
42 */
43 public TmfExperiment getExperiment() {
44 return fExperiment;
45 }
46
47 /* (non-Javadoc)
48 * @see java.lang.Object#toString()
49 */
50 @Override
51 @SuppressWarnings("nls")
52 public String toString() {
53 return "[TmfExperimentUpdatedSignal (" + fExperiment.toString() /*+ ", " + fTrace.toString()*/ + ")]";
54 }
55
56 }
This page took 0.031243 seconds and 5 git commands to generate.