Examples of WaitingBeginsAtStopEdge


Examples of org.onebusaway.transit_data_federation.impl.otp.graph.WaitingBeginsAtStopEdge

   ****/

  @Override
  public Collection<Edge> getIncoming() {
    // Return to the street network
    WaitingBeginsAtStopEdge edge = new WaitingBeginsAtStopEdge(_context,
        getStop(), true);
    edge.setToVertex(this);
    return Arrays.asList((Edge) edge);
  }
View Full Code Here

Examples of org.onebusaway.transit_data_federation.impl.otp.graph.WaitingBeginsAtStopEdge

      WalkToStopVertex walkToStopVertex = new WalkToStopVertex(context, stop);

      if (linker.determineIncomingEdgesForVertex(walkToStopVertex, true)) {
        GraphVertex gv = graph.getGraphVertex(walkToStopVertex.getLabel());
        WaitingBeginsAtStopEdge edge = new WaitingBeginsAtStopEdge(context,
            stop, false);
        edge.setFromVertex(walkToStopVertex);
        gv.addOutgoing(edge);
      } else {
        _log.warn("error linking stop: " + stop.getId() + " to street network");
      }

      /****
       * Add stop-to-street edges
       ****/

      WalkFromStopVertex walkFromStopVertex = new WalkFromStopVertex(context,
          stop);

      if (linker.determineOutgoingEdgesForVertex(walkFromStopVertex, true)) {
        GraphVertex gv = graph.getGraphVertex(walkFromStopVertex.getLabel());
        WaitingEndsAtStopEdge edge = new WaitingEndsAtStopEdge(context, stop,
            true);
        edge.setToVertex(walkFromStopVertex);
        gv.addIncoming(edge);
      } else {
        _log.warn("error linking stop: " + stop.getId() + " to street network");
      }
    }
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.