tmf: Update copyright headers in tmf.core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfRangeSynchSignal.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.ITmfTimestamp;
16 import org.eclipse.linuxtools.tmf.core.timestamp.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 * @since 2.0
40 */
41 public TmfRangeSynchSignal(Object source, TmfTimeRange range, ITmfTimestamp ts) {
42 super(source);
43 fCurrentRange = range;
44 fCurrentTime = ts;
45 }
46
47 /**
48 * @return This signal's time range
49 * @since 2.0
50 */
51 public TmfTimeRange getCurrentRange() {
52 return fCurrentRange;
53 }
54
55 /**
56 * @return This signal's current selected timestamp
57 * @since 2.0
58 */
59 public ITmfTimestamp getCurrentTime() {
60 return fCurrentTime;
61 }
62
63 }
This page took 0.037304 seconds and 5 git commands to generate.