Package org.opentripplanner.routing.vertextype

Examples of org.opentripplanner.routing.vertextype.TransitStopDepart


        secondTripPattern.add(secondTripTimes);
        thirdTripPattern.add(thirdTripTimes);

        // Vertices for legs 1, 2 and 3
        TransitStop v6 = new TransitStop(graph, trainStopDepart);
        TransitStopDepart v8 = new TransitStopDepart(graph, trainStopDepart, v6);
        // To understand the stop indexes in the vertex constructors, look at firstStopTimes.add() etc. above
        PatternDepartVertex v10 = new PatternDepartVertex(graph, firstTripPattern, 0);
        PatternArriveVertex v12 = new PatternArriveVertex(graph, firstTripPattern, 1);
        PatternDepartVertex v14 = new PatternDepartVertex(graph, firstTripPattern, 1);
        PatternArriveVertex v16 = new PatternArriveVertex(graph, firstTripPattern, 2);
        PatternDepartVertex v18 = new PatternDepartVertex(graph, secondTripPattern, 0);
        PatternArriveVertex v20 = new PatternArriveVertex(graph, secondTripPattern, 1);
        TransitStop v24 = new TransitStop(graph, trainStopArrive);
        TransitStopArrive v22 = new TransitStopArrive(graph, trainStopArrive, v24);

        // Vertices for legs 3 and 4
        TransitStop v26 = new TransitStop(graph, ferryStopDepart);
        TransitStopDepart v28 = new TransitStopDepart(graph, ferryStopDepart, v26);
        PatternDepartVertex v30 = new PatternDepartVertex(graph, thirdTripPattern, 0);
        PatternArriveVertex v32 = new PatternArriveVertex(graph, thirdTripPattern, 1);
        TransitStop v36 = new TransitStop(graph, ferryStopArrive);
        TransitStopArrive v34 = new TransitStopArrive(graph, ferryStopArrive, v36);
View Full Code Here


                    // FIXME no need for this context anymore, we just put references to these nodes in the stop vertices themselves.
                    context.stopArriveNodes.put(stop, arrive);
                    stopVertex.arriveVertex = arrive;

                    // Add a vertex representing departing from the stop
                    TransitStopDepart depart = new TransitStopDepart(graph, stop, stopVertex);
                    // FIXME no need for this context anymore, we just put references to these nodes in the stop vertices themselves.
                    context.stopDepartNodes.put(stop, depart);
                    stopVertex.departVertex = depart;

                    // Add edges from arrive to stop and stop to depart
View Full Code Here

            pav1 = new PatternArriveVertex(graph, this, stop + 1);
            arriveVertices[stop + 1] = pav1;
            hopEdges[stop] = new PatternHop(pdv0, pav1, s0, s1, stop);

            /* Get the arrive and depart vertices for the current stop (not pattern stop). */
            TransitStopDepart stopDepart = getStopOrParent(context.stopDepartNodes, s0, graph);
            TransitStopArrive stopArrive = getStopOrParent(context.stopArriveNodes, s1, graph);

            /* Add this pattern's route's mode to the modes for this Stop. */
            // This is updating a TraverseModeSet (which is a bitmask).
            // Maybe we should just store that mask in the pattern when it is created.
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.vertextype.TransitStopDepart

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.