1 /*******************************************************************************
2 * Copyright (c) 2014 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 * Alexandre Montplaisir - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.btf
.core
.analysis
;
15 import org
.eclipse
.tracecompass
.btf
.core
.trace
.BtfTrace
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.exceptions
.TmfAnalysisException
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.statesystem
.ITmfStateProvider
;
18 import org
.eclipse
.tracecompass
.tmf
.core
.statesystem
.TmfStateSystemAnalysisModule
;
19 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
22 * Analysis module for the BTF base analysis
24 * @author Alexandre Montplaisir
26 public class BtfAnalysisModule
extends TmfStateSystemAnalysisModule
{
29 public boolean setTrace(ITmfTrace trace
) throws TmfAnalysisException
{
30 if (!(trace
instanceof BtfTrace
)) {
33 return super.setTrace(trace
);
37 protected BtfTrace
getTrace() {
38 return (BtfTrace
) super.getTrace();
42 protected ITmfStateProvider
createStateProvider() {
43 return new BtfStateProvider(getTrace());