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 | ||
13 | package org.eclipse.linuxtools.tmf.signal; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.event.TmfTimestamp; | |
16 | ||
17 | /** | |
18 | * <b><u>TmfTimeSynchSignal</u></b> | |
19 | * <p> | |
20 | * TODO: Implement me. Please. | |
21 | */ | |
22 | public class TmfTimeSynchSignal extends TmfSignal { | |
23 | ||
24 | private final TmfTimestamp fCurrentTime; | |
25 | ||
26 | public TmfTimeSynchSignal(Object source, TmfTimestamp ts) { | |
27 | super(source); | |
28 | fCurrentTime = ts; | |
29 | } | |
30 | ||
31 | public TmfTimestamp getCurrentTime() { | |
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 | } |