Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfTraceUpdatedSignal.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.event.TmfTimeRange;
16 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
17
18 /**
19 * A trace was updated (typically its time range)
20 *
21 * @version 1.0
22 * @author Francois Chouinard
23 */
24 public class TmfTraceUpdatedSignal extends TmfSignal {
25
26 private final ITmfTrace fTrace;
27 private final TmfTimeRange fTimeRange;
28
29 /**
30 * Constructor
31 *
32 * @param source
33 * Object sending this signal
34 * @param trace
35 * The trace that was updated
36 * @param range
37 * The new time range of the trace
38 */
39 public TmfTraceUpdatedSignal(Object source, ITmfTrace trace, TmfTimeRange range) {
40 super(source);
41 fTrace = trace;
42 fTimeRange = range;
43 }
44
45 /**
46 * @return The trace referred to by this signal
47 */
48 public ITmfTrace getTrace() {
49 return fTrace;
50 }
51
52 /**
53 * @return The time range indicated by this signal
54 */
55 public TmfTimeRange getRange() {
56 return fTimeRange;
57 }
58
59 /*
60 * (non-Javadoc)
61 *
62 * @see java.lang.Object#toString()
63 */
64 @Override
65 @SuppressWarnings("nls")
66 public String toString() {
67 return "[TmfTraceUpdatedSignal (" + fTrace.toString() + ", "
68 + fTimeRange.toString() + ")]";
69 }
70
71 }
This page took 0.037453 seconds and 6 git commands to generate.