org.onebusaway.transit_data_federation.impl.transit_graph
Class BlockConfigurationEntryImpl

java.lang.Object
  extended by 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

Nested Class Summary
static class BlockConfigurationEntryImpl.Builder
           
 
Method Summary
static BlockConfigurationEntryImpl.Builder builder()
           
 int getArrivalTimeForIndex(int index)
           
 BlockEntry getBlock()
          BlockConfigurationEntry Interface
 int getDepartureTimeForIndex(int index)
           
 double getDistanceAlongBlockForIndex(int index)
           
 List<FrequencyEntry> getFrequencies()
          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.
 ServiceIdActivation getServiceIds()
           
 List<BlockStopTimeEntry> getStopTimes()
           
 double getTotalBlockDistance()
           
 List<BlockTripEntry> getTrips()
           
 void setFrequencies(List<FrequencyEntry> frequencies)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.