| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2011 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.signal; |
| 14 | |
| 15 | import org.eclipse.linuxtools.tmf.event.TmfEvent; |
| 16 | import org.eclipse.linuxtools.tmf.event.TmfTimeRange; |
| 17 | import org.eclipse.linuxtools.tmf.experiment.TmfExperiment; |
| 18 | |
| 19 | /** |
| 20 | * <b><u>TmfExperimentRangeUpdatedSignal</u></b> |
| 21 | * <p> |
| 22 | */ |
| 23 | public class TmfExperimentRangeUpdatedSignal extends TmfSignal { |
| 24 | |
| 25 | private final TmfExperiment<? extends TmfEvent> fExperiment; |
| 26 | private final TmfTimeRange fTimeRange; |
| 27 | |
| 28 | public TmfExperimentRangeUpdatedSignal(Object source, TmfExperiment<? extends TmfEvent> experiment, TmfTimeRange range) { // , ITmfTrace trace) { |
| 29 | super(source); |
| 30 | fExperiment = experiment; |
| 31 | fTimeRange = range; |
| 32 | } |
| 33 | |
| 34 | public TmfExperiment<? extends TmfEvent> getExperiment() { |
| 35 | return fExperiment; |
| 36 | } |
| 37 | |
| 38 | public TmfTimeRange getRange() { |
| 39 | return fTimeRange; |
| 40 | } |
| 41 | |
| 42 | /* (non-Javadoc) |
| 43 | * @see java.lang.Object#toString() |
| 44 | */ |
| 45 | @Override |
| 46 | @SuppressWarnings("nls") |
| 47 | public String toString() { |
| 48 | return "[TmfExperimentRangeUpdatedSignal (" + fExperiment.toString() + ", " + fTimeRange.toString() + ")]"; |
| 49 | } |
| 50 | |
| 51 | } |