Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfRangeSynchSignal.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2011 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.ITmfTimestamp;
16 import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
17
18 /**
19 * A new active time range has been selected
20 *
21 * @version 1.0
22 * @author Francois Chouinard
23 */
24 public class TmfRangeSynchSignal extends TmfSignal {
25
26 private final TmfTimeRange fCurrentRange;
27 private final ITmfTimestamp fCurrentTime;
28
29 /**
30 * Constructor
31 *
32 * @param source
33 * Object sending this signal
34 * @param range
35 * The time range to which we synchronized
36 * @param ts
37 * The current selected timestamp, independent from the time
38 * range
39 */
40 public TmfRangeSynchSignal(Object source, TmfTimeRange range, ITmfTimestamp ts) {
41 super(source);
42 fCurrentRange = range;
43 fCurrentTime = ts;
44 }
45
46 /**
47 * @return This signal's time range
48 */
49 public TmfTimeRange getCurrentRange() {
50 return fCurrentRange;
51 }
52
53 /**
54 * @return This signal's current selected timestamp
55 */
56 public ITmfTimestamp getCurrentTime() {
57 return fCurrentTime;
58 }
59
60 }
This page took 0.032625 seconds and 5 git commands to generate.