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
.tests
.analysis
.criticalpath
;
12 import static org
.junit
.Assert
.assertNotNull
;
14 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.base
.TmfGraph
;
15 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.base
.TmfVertex
;
16 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.criticalpath
.ICriticalPathAlgorithm
;
17 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.tests
.stubs
.GraphBuilder
;
18 import org
.eclipse
.tracecompass
.internal
.analysis
.graph
.core
.criticalpath
.CriticalPathAlgorithmBounded
;
21 * Test the {@link CriticalPathAlgorithmBounded} critical path algorithm
23 * @author Francis Giraldeau
24 * @author Geneviève Bastien
26 public class TmfCriticalPathAlgoBoundedTest
extends TmfCriticalPathAlgorithmTest
{
29 protected TmfGraph
computeCriticalPath(TmfGraph graph
, TmfVertex start
) {
31 ICriticalPathAlgorithm cp
= new CriticalPathAlgorithmBounded(graph
);
32 TmfGraph bounded
= cp
.compute(start
, null);
37 protected TmfGraph
getExpectedCriticalPath(GraphBuilder builder
) {
38 return builder
.criticalPathBounded();