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