Package org.onebusaway.transit_data_federation.services.tripplanner

Examples of org.onebusaway.transit_data_federation.services.tripplanner.TransferPattern


      TransferPatternData transferPatternData, StopEntry stopFrom,
      List<StopEntry> stopsTo) {

    TransferParent root = new TransferParent(transferPatternData);

    TransferPattern pattern = _transferPatternsByStop.get(stopFrom);
    if (pattern == null)
      return root;

    pattern.getTransfersForStops(root, stopsTo);

    Map<StopEntry, List<TransferParent>> hubParentsByStop = pattern.getTransfersForHubStops(root);

    for (Map.Entry<StopEntry, List<TransferParent>> entry : hubParentsByStop.entrySet()) {

      StopEntry hubStop = entry.getKey();
      List<TransferParent> parents = entry.getValue();
View Full Code Here


    CompactedTransferPattern pattern = new CompactedTransferPattern(
        stopIndexArray, parentIndicesArray, exitAllowedOffset, hubOffset);
    pattern.setAllStops(_allStops);

    TransferPattern existing = _patternsByOriginStop.put(originStop, pattern);
    if (existing != null)
      _log.warn("overriding pattern for stop " + originStop.getId());

    for (CompactedTransferPatternFactoryListener listener : _listeners)
      listener.patternProcessed(this, originStop, pattern);
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.services.tripplanner.TransferPattern

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.