Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfEventSearchAppliedSignal.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 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.core.signal;
14
15 import org.eclipse.linuxtools.tmf.core.filter.ITmfFilter;
16 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
17
18 /**
19 * Signal indicating an event search has been applied.
20 *
21 * @version 1.0
22 * @author Patrick Tasse
23 * @since 2.0
24 */
25 public class TmfEventSearchAppliedSignal extends TmfSignal {
26
27 private final ITmfTrace fTrace;
28 private final ITmfFilter fSearchFilter;
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 search is applied
37 * @param filter
38 * The applied search filter or null
39 */
40 public TmfEventSearchAppliedSignal(Object source, ITmfTrace trace, ITmfFilter filter) {
41 super(source);
42 fTrace = trace;
43 fSearchFilter = 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 search filter being applied
57 *
58 * @return The search filter
59 */
60 public ITmfFilter getSearchFilter() {
61 return fSearchFilter;
62 }
63
64 @Override
65 public String toString() {
66 return "[TmfSearchFilterAppliedSignal (" + fTrace.getName() + " : " + fSearchFilter + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
67 }
68 }
This page took 0.031657 seconds and 5 git commands to generate.