Remove the generic location (replace by Comparable)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / stubs / org / eclipse / linuxtools / tmf / tests / stubs / trace / TmfEmptyTraceStub.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 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.tests.stubs.trace;
14
15 import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
16 import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
17 import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
18 import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
19
20 /**
21 * <b><u>TmfEmptyTraceStub</u></b>
22 * <p>
23 * Dummy test trace. Use in conjunction with TmfEventParserStub.
24 */
25 public class TmfEmptyTraceStub extends TmfTraceStub {
26
27 /**
28 *
29 */
30 // ------------------------------------------------------------------------
31 // Constructors
32 // ------------------------------------------------------------------------
33
34 /**
35 *
36 */
37 public TmfEmptyTraceStub() {
38 super();
39 setParser(new TmfEventParserStub(this));
40 }
41
42 // ------------------------------------------------------------------------
43 // Operators
44 // ------------------------------------------------------------------------
45
46 @Override
47 public TmfContext seekEvent(final ITmfLocation location) {
48 return new TmfContext();
49 }
50
51 @Override
52 public TmfContext seekEvent(final double ratio) {
53 return new TmfContext();
54 }
55
56 @Override
57 public double getLocationRatio(ITmfLocation location) {
58 return 0;
59 }
60
61 @Override
62 public ITmfLocation getCurrentLocation() {
63 return null;
64 }
65
66 @Override
67 public TmfEvent parseEvent(final ITmfContext context) {
68 return null;
69 }
70
71 }
This page took 0.032138 seconds and 5 git commands to generate.