Ejemplo n.º 1
0
        private bool testArmTask(IDirectedNetwork <CommonJunction, CommonJunction> network, IDirectedNetwork <CommonJunction, CommonJunction> expected_result, int edgeID)
        {
            DirectedNetworkTracer tracer = new DirectedNetworkTracer(network);
            IDirectedNetwork <CommonJunction, CommonJunction> result = tracer.armTask(edgeID).network;

            return(compareNetworks(result, expected_result));
        }
Ejemplo n.º 2
0
        public void testArmatAlgFail()
        {
            yEdDirectedNetwork network = new yEdDirectedNetwork();

            network.setSymbols(this.symbols_to_classes);
            network.loadFromXml(this.getExample("test_arm_fail"));

            DirectedNetworkTracer tracer = new DirectedNetworkTracer(network);

            tracer.armTask(12);
        }
Ejemplo n.º 3
0
        private bool testArmExample(string name, int EdgeID)
        {
            yEdDirectedNetwork network = new yEdDirectedNetwork();

            network.setSymbols(this.symbols_to_classes);
            network.loadFromXml(this.getExample(name));
            DirectedNetworkTracer tracer = new DirectedNetworkTracer(network);

            yEdDirectedNetwork expected_result = new yEdDirectedNetwork();

            expected_result.setSymbols(this.symbols_to_classes);

            expected_result.loadFromXml(this.getExample(name + "_result"));

            IDirectedNetwork <CommonJunction, CommonJunction> result = tracer.armTask(EdgeID).network;

            return(compareNetworks(result, expected_result));
        }