org.onebusaway.transit_data_federation.services.blocks
Class BlockTripInstanceLibrary
java.lang.Object
org.onebusaway.transit_data_federation.services.blocks.BlockTripInstanceLibrary
public class BlockTripInstanceLibrary
- extends Object
Methods for manipulating BlockTripInstance
objects.
- Author:
- bdferris
- See Also:
BlockTripInstance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockTripInstanceLibrary
public BlockTripInstanceLibrary()
getBlockTripInstance
public static BlockTripInstance getBlockTripInstance(BlockInstance blockInstance,
org.onebusaway.gtfs.model.AgencyAndId tripId)
- Creates a
BlockTripInstance
from the specified
BlockInstance
with the trip from the block matching the specified
tripId. If no trip is found in the block with the specified id, then null
is returned.
Note that this is just a linear search. If this ends up being a performance
bottle-neck, we may have to look for a faster method here
- Parameters:
blockInstance
- tripId
-
- Returns:
- the new matching BlockTripInstance
Copyright © 2012 OneBusAway. All Rights Reserved.