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 / TmfEventSelectedSignal.java
CommitLineData
6b44794a
MK
1/*******************************************************************************
2 * Copyright (c) 2014 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 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
2bdf0193 13package org.eclipse.tracecompass.tmf.core.signal;
6b44794a 14
2bdf0193 15import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
6b44794a
MK
16
17/**
18 * Signal indicating a trace event has been selected.
19 *
20 * The specified event has been selected.
21 *
22 * @author Patrick Tasse
6b44794a
MK
23 */
24public class TmfEventSelectedSignal extends TmfSignal {
25
26 private final ITmfEvent fEvent;
27
28 /**
29 * Constructor
30 *
31 * @param source
32 * Object sending this signal
33 * @param event
34 * The event that was selected
35 */
36 public TmfEventSelectedSignal(Object source, ITmfEvent event) {
37 super(source);
38 fEvent = event;
39 }
40
41 /**
42 * @return The event referred to by this signal
43 */
44 public ITmfEvent getEvent() {
45 return fEvent;
46 }
47
48 @Override
49 public String toString() {
50 return "[TmfEventSelectedSignal (" + fEvent.toString() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
51 }
52}
This page took 0.058315 seconds and 5 git commands to generate.