Package org.opentripplanner.routing.core

Examples of org.opentripplanner.routing.core.StopMatcher.matches()


        Stop stop2107 = ((TransitStationStop) graph.getVertex("TriMet:2107")).getStop();
        assertNotNull(stop2107);

        // Match stop with id 65-tc
        assertTrue(stopMatcher.matches(stop65_tc));
        // Match stop with id 12921 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop12921));
        // Match stop with id 13132 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop13132));
        // Match stop with id 2106
View Full Code Here


        assertNotNull(stop2107);

        // Match stop with id 65-tc
        assertTrue(stopMatcher.matches(stop65_tc));
        // Match stop with id 12921 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop12921));
        // Match stop with id 13132 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop13132));
        // Match stop with id 2106
        assertTrue(stopMatcher.matches(stop2106));
        // Match stop with id 2107
View Full Code Here

        // Match stop with id 65-tc
        assertTrue(stopMatcher.matches(stop65_tc));
        // Match stop with id 12921 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop12921));
        // Match stop with id 13132 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop13132));
        // Match stop with id 2106
        assertTrue(stopMatcher.matches(stop2106));
        // Match stop with id 2107
        assertFalse(stopMatcher.matches(stop2107));
    }
View Full Code Here

        // Match stop with id 12921 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop12921));
        // Match stop with id 13132 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop13132));
        // Match stop with id 2106
        assertTrue(stopMatcher.matches(stop2106));
        // Match stop with id 2107
        assertFalse(stopMatcher.matches(stop2107));
    }

    public void testBannedStopsHard() throws ParameterException {
View Full Code Here

        // Match stop with id 13132 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop13132));
        // Match stop with id 2106
        assertTrue(stopMatcher.matches(stop2106));
        // Match stop with id 2107
        assertFalse(stopMatcher.matches(stop2107));
    }

    public void testBannedStopsHard() throws ParameterException {
        // Plan short trip along NE GLISAN ST
        TestPlanner planner = new TestPlanner(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.