Package nzilbb.util

Class TestDependencyGraph


  • public class TestDependencyGraph
    extends Object
    • Constructor Detail

      • TestDependencyGraph

        public TestDependencyGraph()
    • 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)