lttng: More luna annotation updates
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfRangeSynchSignal.java
CommitLineData
8c8bf09f 1/*******************************************************************************
61759503 2 * Copyright (c) 2009, 2013 Ericsson
4f8ca6a1 3 *
8c8bf09f
ASL
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
4f8ca6a1 8 *
8c8bf09f
ASL
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
0fcf3b09 11 * Patrick Tasse - Deprecate current time
8c8bf09f
ASL
12 *******************************************************************************/
13
6c13869b 14package org.eclipse.linuxtools.tmf.core.signal;
8c8bf09f 15
3bd46eef
AM
16import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
17import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
8c8bf09f
ASL
18
19/**
0fcf3b09
PT
20 * A new time range has been selected.
21 *
22 * This is the visible (zoom) time range. To synchronize on the selection range,
23 * use {@link TmfTimeSynchSignal}.
4f8ca6a1 24 *
4b7b3670
FC
25 * @version 1.0
26 * @author Francois Chouinard
8c8bf09f
ASL
27 */
28public class TmfRangeSynchSignal extends TmfSignal {
29
c392540b 30 private final TmfTimeRange fCurrentRange;
8c8bf09f 31
4f8ca6a1
AM
32 /**
33 * Constructor
34 *
35 * @param source
36 * Object sending this signal
37 * @param range
38 * The time range to which we synchronized
39 * @param ts
40 * The current selected timestamp, independent from the time
0fcf3b09 41 * range (ignored)
3bd46eef 42 * @since 2.0
0fcf3b09 43 * @deprecated As of 2.1, use {@link #TmfRangeSynchSignal(Object, TmfTimeRange)}
4f8ca6a1 44 */
0fcf3b09 45 @Deprecated
4df4581d 46 public TmfRangeSynchSignal(Object source, TmfTimeRange range, ITmfTimestamp ts) {
c392540b
FC
47 super(source);
48 fCurrentRange = range;
0fcf3b09
PT
49 }
50
51 /**
52 * Constructor
53 *
54 * @param source
55 * Object sending this signal
56 * @param range
57 * The new time range
00ff7819 58 * @since 3.0
0fcf3b09
PT
59 */
60 public TmfRangeSynchSignal(Object source, TmfTimeRange range) {
61 super(source);
62 fCurrentRange = range;
c392540b 63 }
8c8bf09f 64
4f8ca6a1
AM
65 /**
66 * @return This signal's time range
3bd46eef 67 * @since 2.0
4f8ca6a1 68 */
c392540b
FC
69 public TmfTimeRange getCurrentRange() {
70 return fCurrentRange;
71 }
8c8bf09f 72
4f8ca6a1
AM
73 /**
74 * @return This signal's current selected timestamp
3bd46eef 75 * @since 2.0
0fcf3b09 76 * @deprecated As of 2.1, this returns null
4f8ca6a1 77 */
0fcf3b09 78 @Deprecated
4df4581d 79 public ITmfTimestamp getCurrentTime() {
0fcf3b09 80 return null;
c392540b 81 }
8c8bf09f
ASL
82
83}
This page took 0.05708 seconds and 5 git commands to generate.