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
           
 
Constructor Summary
BlockConfigurationEntryImpl(BlockConfigurationEntryImpl.Builder 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()
           
 ServiceIdActivation getServiceIds()
           
 List<BlockStopTimeEntry> getStopTimes()
           
 double getTotalBlockDistance()
           
 List<BlockTripEntry> getTrips()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockConfigurationEntryImpl

public BlockConfigurationEntryImpl(BlockConfigurationEntryImpl.Builder builder)
Method Detail

builder

public static BlockConfigurationEntryImpl.Builder builder()

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()
Specified by:
getFrequencies in interface BlockConfigurationEntry

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 © 2011 OneBusAway. All Rights Reserved.