Package org.onebusaway.transit_data_federation.impl.otp.TripSequenceShortestPathTree

Examples of org.onebusaway.transit_data_federation.impl.otp.TripSequenceShortestPathTree.ResultCollection


    if (target == currentVertex) {

      // return false;

      TripSequenceShortestPathTree tsSPT = (TripSequenceShortestPathTree) spt;
      ResultCollection byTripSequence = tsSPT.getVerticesByTripSequence(currentVertex);

      if (byTripSequence == null)
        throw new IllegalStateException("expected at least on result");

      if (byTripSequence.getItineraryCount() == 0)
        return true;

      if (byTripSequence.getItineraryCount() >= opts.numItineraries)
        return false;

      State minVertex = getMinVertex(byTripSequence.getStates().values());

      if (current.getWeight() > minVertex.getWeight() * 1.5)
        return false;
    }

View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.impl.otp.TripSequenceShortestPathTree.ResultCollection

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.