Package org.opentripplanner.routing.edgetype

Examples of org.opentripplanner.routing.edgetype.TransitBoardAlight


                    break; // No path found
                // List of used [trip,stop index] in the path
                Set<T2<AgencyAndId, BannedStopSet>> usedTripDefs = new HashSet<T2<AgencyAndId, BannedStopSet>>();
                for (State s : path.states) {
                    if (s.getBackEdge() instanceof TransitBoardAlight) {
                        TransitBoardAlight tbae = (TransitBoardAlight) s.getBackEdge();
                        int boardingStopIndex = tbae.getStopIndex();
                        AgencyAndId tripId = s.getTripId();
                        BannedStopSet stopSet;
                        if (partial) {
                            stopSet = new BannedStopSet();
                            stopSet.add(boardingStopIndex);
View Full Code Here


            assertEquals(TransitBoardAlight.class, e.getClass());
            assertTrue(((TransitBoardAlight) e).boarding);
        }

        // TODO: could this ever be a PatternAlight? I think not.
        TransitBoardAlight pb = (TransitBoardAlight) stop_a.getOutgoing().iterator().next();
        Vertex journey_a_1 = pb.getToVertex();

        assertEquals(1, journey_a_1.getDegreeIn());

        for (Edge e : journey_a_1.getOutgoing()) {
            if (e.getToVertex() instanceof TransitStop) {
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.edgetype.TransitBoardAlight

Copyright © 2018 www.massapicom. 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.