org.onebusaway.transit_data_federation.bundle.tasks.transfer_pattern
Class MutableTransferPattern

java.lang.Object
  extended by org.onebusaway.transit_data_federation.bundle.tasks.transfer_pattern.MutableTransferPattern
All Implemented Interfaces:
TransferPattern

public class MutableTransferPattern
extends Object
implements TransferPattern


Constructor Summary
MutableTransferPattern(StopEntry origin)
           
 
Method Summary
 void addPath(List<org.onebusaway.collections.tuple.Pair<StopEntry>> path)
           
 StopEntry getOriginStop()
          TransferPattern Interface
 Collection<TransferParent> getTransfersForAllStops(TransferParent root)
           
 Map<StopEntry,List<TransferParent>> getTransfersForHubStops(TransferParent root)
           
 Collection<TransferParent> getTransfersForStops(TransferParent root, List<StopEntry> stops)
           
 long writeTransferPatternsToPrintWriter(PrintWriter out, long index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableTransferPattern

public MutableTransferPattern(StopEntry origin)
Method Detail

addPath

public void addPath(List<org.onebusaway.collections.tuple.Pair<StopEntry>> path)

writeTransferPatternsToPrintWriter

public long writeTransferPatternsToPrintWriter(PrintWriter out,
                                               long index)

getOriginStop

public StopEntry getOriginStop()
TransferPattern Interface

Specified by:
getOriginStop in interface TransferPattern

getTransfersForStops

public Collection<TransferParent> getTransfersForStops(TransferParent root,
                                                       List<StopEntry> stops)
Specified by:
getTransfersForStops in interface TransferPattern

getTransfersForAllStops

public Collection<TransferParent> getTransfersForAllStops(TransferParent root)
Specified by:
getTransfersForAllStops in interface TransferPattern

getTransfersForHubStops

public Map<StopEntry,List<TransferParent>> getTransfersForHubStops(TransferParent root)
Specified by:
getTransfersForHubStops in interface TransferPattern


Copyright © 2012 OneBusAway. All Rights Reserved.