Examples of TPOfflineBlockArrivalVertex


Examples of org.onebusaway.transit_data_federation.bundle.tasks.transfer_pattern.graph.TPOfflineBlockArrivalVertex

    for (Vertex v : spt.getVeritces()) {
      if (!(v instanceof TPOfflineBlockArrivalVertex))
        continue;

      TPOfflineBlockArrivalVertex bav = (TPOfflineBlockArrivalVertex) v;
      StopEntry stop = bav.getStop();
      arrivalsByStop.get(stop).add(bav);
    }

    for (Map.Entry<StopEntry, List<TPOfflineBlockArrivalVertex>> entry : arrivalsByStop.entrySet()) {
      processArrivalsForStop(entry.getKey(), entry.getValue(), originStop, spt,
View Full Code Here

Examples of org.onebusaway.transit_data_federation.bundle.tasks.transfer_pattern.graph.TPOfflineBlockArrivalVertex

    Edge payload = state.getBackEdge();
    EdgeNarrative narrative = state.getBackEdgeNarrative();

    if (payload instanceof TPOfflineTransferEdge) {

      TPOfflineBlockArrivalVertex fromV = (TPOfflineBlockArrivalVertex) narrative.getFromVertex();
      TPOfflineTransferVertex toV = (TPOfflineTransferVertex) narrative.getToVertex();

      List<StopEntry> incomingPattern = computeParentsForState(
          state.getBackState(), parentsByState2);
      ArrayList<StopEntry> extendedPattern = new ArrayList<StopEntry>(
          incomingPattern);

      extendedPattern.add(fromV.getStop());
      extendedPattern.add(toV.getStop());

      parent = extendedPattern;

    } else {
View Full Code Here

Examples of org.onebusaway.transit_data_federation.bundle.tasks.transfer_pattern.graph.TPOfflineBlockArrivalVertex

      /**
       * We prune any arrivals that loop back to the origin stop
       */
      if (vertex instanceof TPOfflineBlockArrivalVertex) {
        TPOfflineBlockArrivalVertex bav = (TPOfflineBlockArrivalVertex) vertex;
        StopTimeInstance instance = bav.getInstance();
        if (instance.getStop() == _originStop)
          return true;
      }

      /**
 
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.