1 /*******************************************************************************
2 * Copyright (c) 2015 École Polytechnique de Montréal
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.analysis
.graph
.core
.criticalpath
;
12 import org
.eclipse
.jdt
.annotation
.Nullable
;
13 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.base
.TmfGraph
;
14 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.base
.TmfVertex
;
17 * Interface for all critical path algorithms
19 * @author Francis Giraldeau
21 public interface ICriticalPathAlgorithm
{
24 * Computes the critical path
30 * @return The graph of the critical path
31 * @throws CriticalPathAlgorithmException
32 * an exception in the calculation occurred
34 public TmfGraph
compute(TmfVertex start
, @Nullable TmfVertex end
) throws CriticalPathAlgorithmException
;
37 * Unique ID of this algorithm
39 * @return the ID string
41 public String
getID();
44 * Human readable display name
46 * @return display name
48 public String
getDisplayName();