org.onebusaway.transit_data_federation.services.blocks
Class BlockLayoverIndex

java.lang.Object
  extended by org.onebusaway.transit_data_federation.services.blocks.AbstractBlockTripIndex
      extended by org.onebusaway.transit_data_federation.services.blocks.BlockLayoverIndex
All Implemented Interfaces:
HasBlockTrips

public class BlockLayoverIndex
extends AbstractBlockTripIndex

An ordered index over layover intervals of BlockTripEntry elements. A layover is a portion of a block where we have determined that a vehicle will be sitting, out of operation, between trips. Note that our definition of a layover doesn't include portions of a trip where there is a pause between the arrival and departure of a vehicle from a stop. Instead, we focus on layovers where the passengers typically aren't allowed to stay on the bus, such as a layover at the route terminus. The start and end times for each layover internal are captured in a LayoverIntervalBlock. The BlockTripEntry trips associated with the layover are kept as well. Each BlockTripEntry in the index will have the same ServiceIdActivation.

Author:
bdferris
See Also:
LayoverIntervalBlock

Field Summary
 
Fields inherited from class org.onebusaway.transit_data_federation.services.blocks.AbstractBlockTripIndex
_trips
 
Constructor Summary
BlockLayoverIndex(List<BlockTripEntry> trips, LayoverIntervalBlock layoverIntervalBlock)
          See the requirements in the class documentation.
 
Method Summary
 LayoverIntervalBlock getLayoverIntervalBlock()
           
 String toString()
           
 
Methods inherited from class org.onebusaway.transit_data_federation.services.blocks.AbstractBlockTripIndex
getServiceIds, getTrips, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockLayoverIndex

public BlockLayoverIndex(List<BlockTripEntry> trips,
                         LayoverIntervalBlock layoverIntervalBlock)
See the requirements in the class documentation.

Parameters:
blocks -
serviceIdIntervals -
layoverIntervalBlock -
Method Detail

getLayoverIntervalBlock

public LayoverIntervalBlock getLayoverIntervalBlock()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 OneBusAway. All Rights Reserved.