tmf: Fix the actual end time of state system modules
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / signal / TmfTraceSynchronizedSignal.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * 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 * Geneviève Bastien - Initial implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.core.signal;
14
15 import org.eclipse.tracecompass.tmf.core.synchronization.SynchronizationAlgorithm;
16
17 /**
18 * Signal indicating a trace synchronization has been done
19 *
20 * @author Geneviève Bastien
21 */
22 public class TmfTraceSynchronizedSignal extends TmfSignal {
23
24 private final SynchronizationAlgorithm fAlgoSync;
25
26 /**
27 * Constructor
28 *
29 * @param source
30 * Object sending this signal
31 * @param algoSync
32 * The synchronization algorithm used
33 */
34 public TmfTraceSynchronizedSignal(Object source, SynchronizationAlgorithm algoSync) {
35 super(source);
36 fAlgoSync = algoSync;
37 }
38
39 /**
40 * Synchronization algorithm getter
41 *
42 * @return The algorithm object
43 */
44 public SynchronizationAlgorithm getSyncAlgo() {
45 return fAlgoSync;
46 }
47
48 @Override
49 public String toString() {
50 return "[" + getClass().getSimpleName() + " (" + fAlgoSync.toString() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
51 }
52 }
This page took 0.073932 seconds and 5 git commands to generate.