tmf: Move TmfExperiment to its own package
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / tracecompass / tmf / tests / stubs / trace / TmfExperimentStub.java
1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 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.core.resources.IResource;
16 import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
17 import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
18 import org.eclipse.tracecompass.tmf.core.trace.experiment.TmfExperiment;
19 import org.eclipse.tracecompass.tmf.core.trace.indexer.ITmfTraceIndexer;
20
21 /**
22 * <b><u>TmfExperimentStub</u></b>
23 * <p>
24 * Implement me. Please.
25 * <p>
26 */
27 @SuppressWarnings("javadoc")
28 public class TmfExperimentStub extends TmfExperiment {
29
30 /**
31 * Default constructor. Should not be called directly by the code, but
32 * needed for the extension point.
33 *
34 * @deprecated Only used by the extension point.
35 */
36 @Deprecated
37 public TmfExperimentStub() {
38 super();
39 }
40
41 public TmfExperimentStub(String name, ITmfTrace[] traces, int blockSize) {
42 super(ITmfEvent.class, name, traces, blockSize, null);
43 }
44
45 @Override
46 protected ITmfTraceIndexer createIndexer(int interval) {
47 return new TmfIndexerStub(this, interval);
48 }
49
50 @Override
51 public TmfIndexerStub getIndexer() {
52 return (TmfIndexerStub) super.getIndexer();
53 }
54
55 @Override
56 public void initExperiment(final Class<? extends ITmfEvent> type, final String path, final ITmfTrace[] traces, final int indexPageSize, IResource resource) {
57 super.initExperiment(type, path, traces, indexPageSize, resource);
58 }
59 }
This page took 0.034404 seconds and 5 git commands to generate.