~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/signal/TmfTraceUpdatedSignal.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2012-06-29 12:07:30 UTC
  • Revision ID: package-import@ubuntu.com-20120629120730-bfri1xys1i71dpn6
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2009 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
 *   Francois Chouinard - Initial API and implementation
 
11
 *******************************************************************************/
 
12
 
 
13
package org.eclipse.linuxtools.tmf.core.signal;
 
14
 
 
15
import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
 
16
import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
 
17
 
 
18
/**
 
19
 * A trace was updated (typically its time range)
 
20
 * 
 
21
 * @version 1.0
 
22
 * @author Francois Chouinard
 
23
 */
 
24
public class TmfTraceUpdatedSignal extends TmfSignal {
 
25
 
 
26
        private final ITmfTrace<?> fTrace;
 
27
        private final TmfTimeRange fTimeRange;
 
28
        
 
29
        public TmfTraceUpdatedSignal(Object source, ITmfTrace<?> trace, TmfTimeRange range) {
 
30
                super(source);
 
31
                fTrace = trace;
 
32
                fTimeRange = range;
 
33
        }
 
34
 
 
35
        public ITmfTrace<?> getTrace() {
 
36
                return fTrace;
 
37
        }
 
38
 
 
39
        public TmfTimeRange getRange() {
 
40
                return fTimeRange;
 
41
        }
 
42
 
 
43
        /* (non-Javadoc)
 
44
         * @see java.lang.Object#toString()
 
45
         */
 
46
        @Override
 
47
    @SuppressWarnings("nls")
 
48
        public String toString() {
 
49
                return "[TmfTraceUpdatedSignal (" + fTrace.toString() + ", " + fTimeRange.toString() + ")]";
 
50
        }
 
51
 
 
52
}