2ddc53bab7f407d74c5cf0b2eba549c73794ea30
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / tracecompass / tmf / tests / stubs / analysis / TestStateSystemModule.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2015 École Polytechnique de Montréal
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 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.tests.stubs.analysis;
14
15 import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.tracecompass.tmf.core.statesystem.ITmfStateProvider;
19 import org.eclipse.tracecompass.tmf.core.statesystem.TmfStateSystemAnalysisModule;
20
21 /**
22 * Test State System module
23 *
24 * @author Geneviève Bastien
25 */
26 @NonNullByDefault
27 public class TestStateSystemModule extends TmfStateSystemAnalysisModule {
28
29 @Override
30 protected ITmfStateProvider createStateProvider() {
31 return new TestStateSystemProvider(checkNotNull(getTrace()));
32 }
33
34 @Override
35 protected StateSystemBackendType getBackendType() {
36 return StateSystemBackendType.INMEM;
37 }
38
39 /**
40 * Get the name of the backend
41 *
42 * @return The name of the backend used
43 */
44 public String getBackendName() {
45 return StateSystemBackendType.INMEM.name();
46 }
47
48 }
This page took 0.035255 seconds and 4 git commands to generate.