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
.timestamp
.TmfTimeRange
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
19 * Signal indicating a trace range has been updated.
21 * Receivers can safely perform event requests for the specified time range.
22 * The signal acts as a trigger for coalescing such requests.
24 * @author Patrick Tasse
26 public class TmfTraceRangeUpdatedSignal
extends TmfSignal
{
28 private final ITmfTrace fTrace
;
29 private final TmfTimeRange fTimeRange
;
35 * Object sending this signal
37 * Trace whose range was updated
39 * The new time range of the trace
41 public TmfTraceRangeUpdatedSignal(Object source
, ITmfTrace trace
, TmfTimeRange range
) {
50 public ITmfTrace
getTrace() {
55 * @return The time range
57 public TmfTimeRange
getRange() {
62 @SuppressWarnings("nls")
63 public String
toString() {
64 return "[TmfTraceRangeUpdatedSignal (" + fTrace
.getName() + ", " + fTimeRange
.toString() + ")]";