1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 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
.linuxtools
.tmf
.core
.signal
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.timestamp
.TmfTimeRange
;
16 import org
.eclipse
.linuxtools
.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.
25 * @author Patrick Tasse
28 public class TmfTraceRangeUpdatedSignal
extends TmfSignal
{
30 private final ITmfTrace fTrace
;
31 private final TmfTimeRange fTimeRange
;
37 * Object sending this signal
39 * Trace whose range was updated
41 * The new time range of the trace
43 public TmfTraceRangeUpdatedSignal(Object source
, ITmfTrace trace
, TmfTimeRange range
) {
52 public ITmfTrace
getTrace() {
57 * @return The time range
59 public TmfTimeRange
getRange() {
64 * @see java.lang.Object#toString()
67 @SuppressWarnings("nls")
68 public String
toString() {
69 return "[TmfTraceRangeUpdatedSignal (" + fTrace
.getName() + ", " + fTimeRange
.toString() + ")]";