tmf: Do not define base aspects in the interface
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / tracecompass / tmf / tests / stubs / trace / TmfEmptyTraceStub.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2015 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.tracecompass.tmf.tests.stubs.trace;
14
15 import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
16 import org.eclipse.tracecompass.tmf.core.exceptions.TmfTraceException;
17 import org.eclipse.tracecompass.tmf.core.trace.ITmfContext;
18 import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
19 import org.eclipse.tracecompass.tmf.core.trace.TmfContext;
20 import org.eclipse.tracecompass.tmf.core.trace.location.ITmfLocation;
21
22 /**
23 * <b><u>TmfEmptyTraceStub</u></b>
24 * <p>
25 * Dummy test trace. Use in conjunction with TmfEventParserStub.
26 */
27 public class TmfEmptyTraceStub extends TmfTraceStub {
28
29 // ------------------------------------------------------------------------
30 // Constructors
31 // ------------------------------------------------------------------------
32
33 /**
34 * Constructor
35 *
36 * @param path
37 * the empty trace path
38 *
39 * @throws TmfTraceException
40 * if an exception occurs
41 */
42 public TmfEmptyTraceStub(String path) throws TmfTraceException {
43 super(path, ITmfTrace.DEFAULT_TRACE_CACHE_SIZE, 0L);
44 }
45
46 // ------------------------------------------------------------------------
47 // Operators
48 // ------------------------------------------------------------------------
49
50 @Override
51 public TmfContext seekEvent(final ITmfLocation location) {
52 return new TmfContext();
53 }
54
55 @Override
56 public TmfContext seekEvent(final double ratio) {
57 return new TmfContext();
58 }
59
60 @Override
61 public double getLocationRatio(ITmfLocation location) {
62 return 0;
63 }
64
65 @Override
66 public ITmfLocation getCurrentLocation() {
67 return null;
68 }
69
70 @Override
71 public ITmfEvent parseEvent(final ITmfContext context) {
72 return null;
73 }
74
75 }
This page took 0.037895 seconds and 5 git commands to generate.