Commit | Line | Data |
---|---|---|
8c8bf09f ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 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 | ||
6c13869b | 13 | package org.eclipse.linuxtools.tmf.core.signal; |
8c8bf09f | 14 | |
4df4581d | 15 | import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp; |
8c8bf09f ASL |
16 | |
17 | /** | |
18 | * <b><u>TmfTimeSynchSignal</u></b> | |
19 | * <p> | |
20 | * TODO: Implement me. Please. | |
21 | */ | |
22 | public class TmfTimeSynchSignal extends TmfSignal { | |
23 | ||
4df4581d | 24 | private final ITmfTimestamp fCurrentTime; |
8c8bf09f | 25 | |
4df4581d | 26 | public TmfTimeSynchSignal(Object source, ITmfTimestamp ts) { |
8c8bf09f ASL |
27 | super(source); |
28 | fCurrentTime = ts; | |
29 | } | |
30 | ||
4df4581d | 31 | public ITmfTimestamp getCurrentTime() { |
8c8bf09f ASL |
32 | return fCurrentTime; |
33 | } | |
34 | ||
8d2e2848 FC |
35 | /* (non-Javadoc) |
36 | * @see java.lang.Object#toString() | |
37 | */ | |
38 | @Override | |
3b38ea61 | 39 | @SuppressWarnings("nls") |
8d2e2848 FC |
40 | public String toString() { |
41 | return "[TmfTimeSynchSignal (" + fCurrentTime.toString() + ")]"; | |
42 | } | |
43 | ||
8c8bf09f | 44 | } |