org.onebusaway.transit_data_federation.impl.transit_graph
Class BlockConfigurationEntryImpl
java.lang.Object
org.onebusaway.transit_data_federation.impl.transit_graph.BlockConfigurationEntryImpl
- All Implemented Interfaces:
- Serializable, HasIndexedBlockStopTimes, BlockConfigurationEntry, HasBlockStopTimes
public class BlockConfigurationEntryImpl
- extends Object
- implements BlockConfigurationEntry, Serializable
- See Also:
- Serialized Form
builder
public static BlockConfigurationEntryImpl.Builder builder()
setFrequencies
public void setFrequencies(List<FrequencyEntry> frequencies)
getBlock
public BlockEntry getBlock()
BlockConfigurationEntry
Interface
- Specified by:
getBlock
in interface BlockConfigurationEntry
getServiceIds
public ServiceIdActivation getServiceIds()
- Specified by:
getServiceIds
in interface BlockConfigurationEntry
getTrips
public List<BlockTripEntry> getTrips()
- Specified by:
getTrips
in interface BlockConfigurationEntry
getFrequencies
public List<FrequencyEntry> getFrequencies()
- Description copied from interface:
BlockConfigurationEntry
- A block with frequency information can be one of two types:
1) A traditional frequency-based block where the block configuration
defines the trip patterns for the entire frequency range.
2) A frequency-in-name-only block where block trips are operated on a fixed
schedule, but marketed as frequency-based to riders.
- Specified by:
getFrequencies
in interface BlockConfigurationEntry
- Returns:
- the frequency entries associated with the trips of this block
configuration, or null if it's not a frequency-based block
getStopTimes
public List<BlockStopTimeEntry> getStopTimes()
- Specified by:
getStopTimes
in interface HasBlockStopTimes
getTotalBlockDistance
public double getTotalBlockDistance()
- Specified by:
getTotalBlockDistance
in interface BlockConfigurationEntry
- Returns:
- distance, in meters
getArrivalTimeForIndex
public int getArrivalTimeForIndex(int index)
- Specified by:
getArrivalTimeForIndex
in interface HasIndexedBlockStopTimes
getDepartureTimeForIndex
public int getDepartureTimeForIndex(int index)
- Specified by:
getDepartureTimeForIndex
in interface HasIndexedBlockStopTimes
getDistanceAlongBlockForIndex
public double getDistanceAlongBlockForIndex(int index)
- Specified by:
getDistanceAlongBlockForIndex
in interface BlockConfigurationEntry
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 OneBusAway. All Rights Reserved.