Package org.onebusaway.transit_data_federation.impl.otp.graph.tp

Examples of org.onebusaway.transit_data_federation.impl.otp.graph.tp.HasPathStateVertex


   ****/

  private double computeWeight(State state, Vertex target, Vertex v) {

    if (v instanceof HasPathStateVertex) {
      HasPathStateVertex tpV = (HasPathStateVertex) v;

      TPState pathState = tpV.getPathState();
      TransferNode node = pathState.getNode();

      boolean isFromSourceStop = tpV.isDeparture() ^ pathState.isReverse();

      CoordinatePoint dest = new CoordinatePoint(target.getY(), target.getX());
      Set<TransferNode> visitedNodes = new HashSet<TransferNode>();
      return getWeightForTransferNode(null, node, isFromSourceStop, dest,
          visitedNodes);
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.impl.otp.graph.tp.HasPathStateVertex

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.