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