ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfEventFilterAppliedSignal.java
CommitLineData
faa38350
PT
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 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.core.signal;
14
15import org.eclipse.linuxtools.tmf.core.filter.ITmfFilter;
16import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
17
18/**
19 * Signal indicating an event filter has been applied.
20 *
21 * @version 1.0
22 * @author Patrick Tasse
23 * @since 2.0
24 */
25public class TmfEventFilterAppliedSignal extends TmfSignal {
26
27 private final ITmfTrace fTrace;
28 private final ITmfFilter fEventFilter;
29
30 /**
31 * Constructor for a new signal.
32 *
33 * @param source
34 * The object sending this signal
35 * @param trace
36 * The trace to which filter is applied
37 * @param filter
38 * The applied event filter or null
39 */
40 public TmfEventFilterAppliedSignal(Object source, ITmfTrace trace, ITmfFilter filter) {
41 super(source);
42 fTrace = trace;
43 fEventFilter = filter;
44 }
45
46 /**
47 * Get the trace object concerning this signal
48 *
49 * @return The trace
50 */
51 public ITmfTrace getTrace() {
52 return fTrace;
53 }
54
55 /**
56 * Get the event filter being applied
57 *
58 * @return The filter
59 */
60 public ITmfFilter getEventFilter() {
61 return fEventFilter;
62 }
63
64 @Override
65 public String toString() {
66 return "[TmfEventFilterAppliedSignal (" + fTrace.getName() + " : " + fEventFilter + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
67 }
68}
This page took 0.06507 seconds and 5 git commands to generate.