ctf: Rename internal CTFStrings to MetadataStrings
[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
11 *******************************************************************************/
12
6c13869b 13package org.eclipse.linuxtools.tmf.core.signal;
8c8bf09f 14
3bd46eef
AM
15import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
16import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
8c8bf09f
ASL
17
18/**
4b7b3670 19 * A new active time range has been selected
4f8ca6a1 20 *
4b7b3670
FC
21 * @version 1.0
22 * @author Francois Chouinard
8c8bf09f
ASL
23 */
24public class TmfRangeSynchSignal extends TmfSignal {
25
c392540b 26 private final TmfTimeRange fCurrentRange;
4df4581d 27 private final ITmfTimestamp fCurrentTime;
8c8bf09f 28
4f8ca6a1
AM
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
3bd46eef 39 * @since 2.0
4f8ca6a1 40 */
4df4581d 41 public TmfRangeSynchSignal(Object source, TmfTimeRange range, ITmfTimestamp ts) {
c392540b
FC
42 super(source);
43 fCurrentRange = range;
44 fCurrentTime = ts;
45 }
8c8bf09f 46
4f8ca6a1
AM
47 /**
48 * @return This signal's time range
3bd46eef 49 * @since 2.0
4f8ca6a1 50 */
c392540b
FC
51 public TmfTimeRange getCurrentRange() {
52 return fCurrentRange;
53 }
8c8bf09f 54
4f8ca6a1
AM
55 /**
56 * @return This signal's current selected timestamp
3bd46eef 57 * @since 2.0
4f8ca6a1 58 */
4df4581d 59 public ITmfTimestamp getCurrentTime() {
c392540b
FC
60 return fCurrentTime;
61 }
8c8bf09f
ASL
62
63}
This page took 0.043151 seconds and 5 git commands to generate.