Fix NLS-related Javadoc warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfTraceUpdatedSignal.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2013 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.timestamp.TmfTimeRange;
16 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
17
18 /**
19 * Signal indicating a trace has been updated.
20 *
21 * The trace has been indexed up to the specified range.
22 *
23 * @version 1.0
24 * @author Francois Chouinard
25 */
26 public class TmfTraceUpdatedSignal extends TmfSignal {
27
28 private final ITmfTrace fTrace;
29 private final TmfTimeRange fTimeRange;
30
31 /**
32 * Constructor
33 *
34 * @param source
35 * Object sending this signal
36 * @param trace
37 * The trace that was updated
38 * @param range
39 * The new time range of the trace
40 * @since 2.0
41 */
42 public TmfTraceUpdatedSignal(Object source, ITmfTrace trace, TmfTimeRange range) {
43 super(source);
44 fTrace = trace;
45 fTimeRange = range;
46 }
47
48 /**
49 * @return The trace referred to by this signal
50 */
51 public ITmfTrace getTrace() {
52 return fTrace;
53 }
54
55 /**
56 * @return The time range indicated by this signal
57 * @since 2.0
58 */
59 public TmfTimeRange getRange() {
60 return fTimeRange;
61 }
62
63 /*
64 * (non-Javadoc)
65 *
66 * @see java.lang.Object#toString()
67 */
68 @Override
69 @SuppressWarnings("nls")
70 public String toString() {
71 return "[TmfTraceUpdatedSignal (" + fTrace.toString() + ", "
72 + fTimeRange.toString() + ")]";
73 }
74
75 }
This page took 0.031416 seconds and 5 git commands to generate.