1 /*******************************************************************************
2 * Copyright (c) 2009, 2015 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.tests
.stubs
.trace
;
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
;
23 * <b><u>TmfEmptyTraceStub</u></b>
25 * Dummy test trace. Use in conjunction with TmfEventParserStub.
27 public class TmfEmptyTraceStub
extends TmfTraceStub
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
37 * the empty trace path
39 * @throws TmfTraceException
40 * if an exception occurs
42 public TmfEmptyTraceStub(String path
) throws TmfTraceException
{
43 super(path
, ITmfTrace
.DEFAULT_TRACE_CACHE_SIZE
, 0L);
46 // ------------------------------------------------------------------------
48 // ------------------------------------------------------------------------
51 public TmfContext
seekEvent(final ITmfLocation location
) {
52 return new TmfContext();
56 public TmfContext
seekEvent(final double ratio
) {
57 return new TmfContext();
61 public double getLocationRatio(ITmfLocation location
) {
66 public ITmfLocation
getCurrentLocation() {
71 public ITmfEvent
parseEvent(final ITmfContext context
) {
This page took 0.037895 seconds and 5 git commands to generate.