org.onebusaway.transit_data_federation.services.blocks
Class BlockLayoverIndex
java.lang.Object
org.onebusaway.transit_data_federation.services.blocks.AbstractBlockTripIndex
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
BlockLayoverIndex
public BlockLayoverIndex(List<BlockTripEntry> trips,
LayoverIntervalBlock layoverIntervalBlock)
- See the requirements in the class documentation.
- Parameters:
blocks
- serviceIdIntervals
- layoverIntervalBlock
-
getLayoverIntervalBlock
public LayoverIntervalBlock getLayoverIntervalBlock()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 OneBusAway. All Rights Reserved.