org.onebusaway.transit_data_federation.impl.transit_graph
Class BlockEntryImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.transit_graph.BlockEntryImpl
All Implemented Interfaces:
Serializable, BlockEntry

public class BlockEntryImpl
extends Object
implements BlockEntry, Serializable

See Also:
Serialized Form

Constructor Summary
BlockEntryImpl()
           
 
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()
          BlockEntry Interface
 void setConfigurations(List<BlockConfigurationEntry> configurations)
           
 void setId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockEntryImpl

public BlockEntryImpl()
Method Detail

setId

public void setId(org.onebusaway.gtfs.model.AgencyAndId id)

setConfigurations

public void setConfigurations(List<BlockConfigurationEntry> configurations)

getId

public org.onebusaway.gtfs.model.AgencyAndId getId()
BlockEntry Interface

Specified by:
getId in interface BlockEntry

getConfigurations

public List<BlockConfigurationEntry> getConfigurations()
Description copied from interface: BlockEntry
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.

Specified by:
getConfigurations in interface BlockEntry
Returns:
the list of block configurations for a particular block

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.