Commit | Line | Data |
---|---|---|
f152ca57 FC |
1 | /******************************************************************************* |
2 | * Copyright (c) 2012 Ericsson | |
6256d8ad | 3 | * |
f152ca57 FC |
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 | |
6256d8ad | 8 | * |
f152ca57 FC |
9 | * Contributors: |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.core.signal; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace; | |
16 | ||
17 | /** | |
18 | * Signal sent when the state system has completed its build. | |
6256d8ad | 19 | * |
f152ca57 FC |
20 | * @version 1.0 |
21 | * @author Francois Chouinard | |
22 | */ | |
23 | public class TmfStateSystemBuildCompleted extends TmfSignal { | |
24 | ||
6256d8ad AM |
25 | private final ITmfTrace fTrace; |
26 | ||
f152ca57 | 27 | /** |
4f8ca6a1 AM |
28 | * Constructor |
29 | * | |
f152ca57 | 30 | * @param source |
4f8ca6a1 AM |
31 | * Object sending this signal |
32 | * @param trace | |
33 | * The state system of which trace just finished building | |
f152ca57 | 34 | */ |
6256d8ad | 35 | public TmfStateSystemBuildCompleted(Object source, ITmfTrace trace) { |
f152ca57 FC |
36 | super(source); |
37 | fTrace = trace; | |
38 | } | |
39 | ||
40 | /** | |
4f8ca6a1 | 41 | * @return The trace referred to by this signal |
f152ca57 | 42 | */ |
6256d8ad | 43 | public ITmfTrace getTrace() { |
f152ca57 FC |
44 | return fTrace; |
45 | } | |
46 | ||
47 | /* (non-Javadoc) | |
48 | * @see java.lang.Object#toString() | |
49 | */ | |
50 | @Override | |
f152ca57 | 51 | public String toString() { |
4f8ca6a1 | 52 | return "[TmfStateSystemBuildCompleted (" + fTrace.toString() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ |
f152ca57 FC |
53 | } |
54 | ||
55 | } |