Commit | Line | Data |
---|---|---|
faa38350 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2012, 2014 Ericsson |
faa38350 PT |
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 | 13 | package org.eclipse.tracecompass.tmf.core.signal; |
faa38350 | 14 | |
2bdf0193 AM |
15 | import org.eclipse.tracecompass.tmf.core.filter.ITmfFilter; |
16 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; | |
faa38350 PT |
17 | |
18 | /** | |
19 | * Signal indicating an event search has been applied. | |
20 | * | |
faa38350 | 21 | * @author Patrick Tasse |
faa38350 PT |
22 | */ |
23 | public class TmfEventSearchAppliedSignal extends TmfSignal { | |
24 | ||
25 | private final ITmfTrace fTrace; | |
26 | private final ITmfFilter fSearchFilter; | |
27 | ||
28 | /** | |
29 | * Constructor for a new signal. | |
30 | * | |
31 | * @param source | |
32 | * The object sending this signal | |
33 | * @param trace | |
34 | * The trace to which search is applied | |
35 | * @param filter | |
36 | * The applied search filter or null | |
37 | */ | |
38 | public TmfEventSearchAppliedSignal(Object source, ITmfTrace trace, ITmfFilter filter) { | |
39 | super(source); | |
40 | fTrace = trace; | |
41 | fSearchFilter = filter; | |
42 | } | |
43 | ||
44 | /** | |
45 | * Get the trace object concerning this signal | |
46 | * | |
47 | * @return The trace | |
48 | */ | |
49 | public ITmfTrace getTrace() { | |
50 | return fTrace; | |
51 | } | |
52 | ||
53 | /** | |
54 | * Get the search filter being applied | |
55 | * | |
56 | * @return The search filter | |
57 | */ | |
58 | public ITmfFilter getSearchFilter() { | |
59 | return fSearchFilter; | |
60 | } | |
61 | ||
62 | @Override | |
63 | public String toString() { | |
64 | return "[TmfSearchFilterAppliedSignal (" + fTrace.getName() + " : " + fSearchFilter + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ | |
65 | } | |
66 | } |