tmf: Clean up tmf.core.trace package
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / stubs / org / eclipse / linuxtools / tmf / tests / stubs / trace / TmfEmptyTraceStub.java
CommitLineData
b75d6b65 1/*******************************************************************************
61759503 2 * Copyright (c) 2009, 2013 Ericsson
9b749023 3 *
b75d6b65
FC
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
9b749023 8 *
b75d6b65
FC
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.tests.stubs.trace;
14
2771b032 15import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
b75d6b65 16import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
b75d6b65 17import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
a3db8436 18import org.eclipse.linuxtools.tmf.core.trace.location.ITmfLocation;
b75d6b65
FC
19
20/**
21 * <b><u>TmfEmptyTraceStub</u></b>
22 * <p>
23 * Dummy test trace. Use in conjunction with TmfEventParserStub.
24 */
25public class TmfEmptyTraceStub extends TmfTraceStub {
26
0283f7ff
FC
27 /**
28 *
29 */
b75d6b65
FC
30 // ------------------------------------------------------------------------
31 // Constructors
32 // ------------------------------------------------------------------------
33
34 /**
0283f7ff 35 *
b75d6b65
FC
36 */
37 public TmfEmptyTraceStub() {
38 super();
39 setParser(new TmfEventParserStub(this));
40 }
41
42 // ------------------------------------------------------------------------
43 // Operators
44 // ------------------------------------------------------------------------
45
46 @Override
1e1bef82 47 public TmfContext seekEvent(final ITmfLocation location) {
b75d6b65
FC
48 return new TmfContext();
49 }
50
51 @Override
52 public TmfContext seekEvent(final double ratio) {
53 return new TmfContext();
54 }
55
56 @Override
1e1bef82 57 public double getLocationRatio(ITmfLocation location) {
b75d6b65
FC
58 return 0;
59 }
60
61 @Override
1e1bef82 62 public ITmfLocation getCurrentLocation() {
b75d6b65
FC
63 return null;
64 }
65
66 @Override
2771b032 67 public ITmfEvent parseEvent(final ITmfContext context) {
b75d6b65
FC
68 return null;
69 }
70
71}
This page took 0.037139 seconds and 5 git commands to generate.