org.onebusaway.transit_data_federation.impl.transit_graph
Class BlockEntryImpl
java.lang.Object
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
BlockEntryImpl
public BlockEntryImpl()
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,
- A,B,C
- A,B
- A,C
- B,C
- A
- B
- 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 © 2012 OneBusAway. All Rights Reserved.