Commit | Line | Data |
---|---|---|
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 | ||
13 | package org.eclipse.linuxtools.tmf.tests.stubs.trace; | |
14 | ||
b75d6b65 FC |
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; | |
b75d6b65 FC |
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 | ||
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 | |
67 | public TmfEvent parseEvent(final ITmfContext context) { | |
68 | return null; | |
69 | } | |
70 | ||
71 | } |