Class BlockLayoverIndex

  extended by
      extended by
All Implemented Interfaces:

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.

See Also:

Field Summary
Fields inherited from class
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
getServiceIds, getTrips, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


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

blocks -
serviceIdIntervals -
layoverIntervalBlock -
Method Detail


public LayoverIntervalBlock getLayoverIntervalBlock()


public String toString()
toString in class Object

Copyright © 2012 OneBusAway. All Rights Reserved.