Package nzilbb.util
Class TestDependencyGraph
- java.lang.Object
-
- nzilbb.util.TestDependencyGraph
-
public class TestDependencyGraph extends Object
-
-
Constructor Summary
Constructors Constructor Description TestDependencyGraph()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
basicResolution()
Tests generic dependency resolution of a simple, fully-connected dependency graph.void
circularDependency()
Ensures indirect circular dependencies are detected.void
disconnectedGraph()
Tests generic dependency resolution of a diconnected dependency graph, with three independent sub-graphs, one with a single unconnected node.void
layerManagerGraph()
Simulates old-style 'layer manager' resolution.static void
main(String[] args)
-
-
-
Method Detail
-
basicResolution
public void basicResolution() throws Exception
Tests generic dependency resolution of a simple, fully-connected dependency graph.- Throws:
Exception
-
circularDependency
public void circularDependency() throws Exception
Ensures indirect circular dependencies are detected.- Throws:
Exception
-
disconnectedGraph
public void disconnectedGraph() throws Exception
Tests generic dependency resolution of a diconnected dependency graph, with three independent sub-graphs, one with a single unconnected node.- Throws:
Exception
-
layerManagerGraph
public void layerManagerGraph() throws Exception
Simulates old-style 'layer manager' resolution. In this case:- Dependencies are determined by layers generated.
- A layer can have a primary manager and several auxiliary managers.
- For each layer, the primary manager must run first, then the auxiliaries in order.
- Some layers have no layer manager, but can nevertheless be generated by another layer's manager - e.g. HTK generates its own layer plus the 'segment' layer.
- Throws:
Exception
-
main
public static void main(String[] args)
-
-