2f0721033c94a5059ec0c70d4dc5119af4dac32f
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfStateSystemBuildCompleted.java
1 /*******************************************************************************
2 * Copyright (c) 2012 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.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.
19 *
20 * @version 1.0
21 * @author Francois Chouinard
22 */
23 public class TmfStateSystemBuildCompleted extends TmfSignal {
24
25 private final ITmfTrace fTrace;
26 private final String fID;
27
28 /**
29 * Constructor
30 *
31 * @param source
32 * Object sending this signal
33 * @param trace
34 * The state system of which trace just finished building
35 * @param id
36 * ID associated with this state system. This can be used in the
37 * case of a trace containing multiple state systems, to
38 * differentiate between them.
39 * @since 2.0
40 */
41 public TmfStateSystemBuildCompleted(Object source, ITmfTrace trace, String id) {
42 super(source);
43 fTrace = trace;
44 fID = id;
45 }
46
47 /**
48 * @return The trace referred to by this signal
49 */
50 public ITmfTrace getTrace() {
51 return fTrace;
52 }
53
54 /**
55 * @return The ID of the state system that just finished building
56 * @since 2.0
57 */
58 public String getID() {
59 return fID;
60 }
61
62 /* (non-Javadoc)
63 * @see java.lang.Object#toString()
64 */
65 @Override
66 public String toString() {
67 return "[TmfStateSystemBuildCompleted (trace = " + fTrace.toString() + //$NON-NLS-1$
68 ", ID = " + fID + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
69 }
70
71 }
This page took 0.081234 seconds and 4 git commands to generate.