Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfTimeSynchSignal.java
CommitLineData
8c8bf09f
ASL
1/*******************************************************************************
2 * Copyright (c) 2009 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
4df4581d 15import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
8c8bf09f
ASL
16
17/**
4b7b3670 18 * A new current time is selected (for component synchronization)
4f8ca6a1 19 *
4b7b3670
FC
20 * @version 1.0
21 * @author Francois Chouinard
22*/
8c8bf09f
ASL
23public class TmfTimeSynchSignal extends TmfSignal {
24
4f8ca6a1
AM
25 private final ITmfTimestamp fCurrentTime;
26
27 /**
28 * Constructor
29 *
30 * @param source
31 * Object sending this signal
32 * @param ts
33 * Synchronize to which timestamp
34 */
35 public TmfTimeSynchSignal(Object source, ITmfTimestamp ts) {
36 super(source);
37 fCurrentTime = ts;
38 }
39
40 /**
41 * @return The synchronization timestamp of this signal
42 */
43 public ITmfTimestamp getCurrentTime() {
44 return fCurrentTime;
45 }
46
47 /*
48 * (non-Javadoc)
49 *
50 * @see java.lang.Object#toString()
51 */
52 @Override
53 public String toString() {
54 return "[TmfTimeSynchSignal (" + fCurrentTime.toString() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
55 }
8d2e2848 56
8c8bf09f 57}
This page took 0.037265 seconds and 5 git commands to generate.