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 voidbasicResolution()Tests generic dependency resolution of a simple, fully-connected dependency graph.voidcircularDependency()Ensures indirect circular dependencies are detected.voiddisconnectedGraph()Tests generic dependency resolution of a diconnected dependency graph, with three independent sub-graphs, one with a single unconnected node.voidlayerManagerGraph()Simulates old-style 'layer manager' resolution.static voidmain(String[] args)
-
-
-
Method Detail
-
basicResolution
public void basicResolution() throws ExceptionTests generic dependency resolution of a simple, fully-connected dependency graph.- Throws:
Exception
-
circularDependency
public void circularDependency() throws ExceptionEnsures indirect circular dependencies are detected.- Throws:
Exception
-
disconnectedGraph
public void disconnectedGraph() throws ExceptionTests 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 ExceptionSimulates 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)
-
-