1 /*******************************************************************************
2 * Copyright (c) 2012, 2014 Ericsson
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
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.core
.signal
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.filter
.ITmfFilter
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
19 * Signal indicating an event filter has been applied.
21 * @author Patrick Tasse
23 public class TmfEventFilterAppliedSignal
extends TmfSignal
{
25 private final ITmfTrace fTrace
;
26 private final ITmfFilter fEventFilter
;
29 * Constructor for a new signal.
32 * The object sending this signal
34 * The trace to which filter is applied
36 * The applied event filter or null
38 public TmfEventFilterAppliedSignal(Object source
, ITmfTrace trace
, ITmfFilter filter
) {
41 fEventFilter
= filter
;
45 * Get the trace object concerning this signal
49 public ITmfTrace
getTrace() {
54 * Get the event filter being applied
58 public ITmfFilter
getEventFilter() {
63 public String
toString() {
64 return "[TmfEventFilterAppliedSignal (" + fTrace
.getName() + " : " + fEventFilter
+ ")]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$