org.onebusaway.transit_data_federation.services.transit_graph
Interface BlockEntry

All Known Implementing Classes:
BlockEntryImpl

public interface BlockEntry


Method Summary
 List<BlockConfigurationEntry> getConfigurations()
          The configurations are sorted by decreasing service id count, and then by service id for configurations with the same number of service ids.
 org.onebusaway.gtfs.model.AgencyAndId getId()
           
 

Method Detail

getId

org.onebusaway.gtfs.model.AgencyAndId getId()

getConfigurations

List<BlockConfigurationEntry> getConfigurations()
The configurations are sorted by decreasing service id count, and then by service id for configurations with the same number of service ids. So for example, if a block has trips with service ids A, B, and C,
  1. A,B,C
  2. A,B
  3. A,C
  4. B,C
  5. A
  6. B
  7. C
This order was selected so that when iterating of configurations to determine which is active, a config where service ids A,B, and C are all active should be selected before a config where just A and B are active. See BlockCalendarService#getBlockConfigurationIndex(AgencyAndId, long) for more info.

Returns:
the list of block configurations for a particular block


Copyright © 2012 OneBusAway. All Rights Reserved.