org.onebusaway.transit_data_federation.model
Class StopSequenceCollection
java.lang.Object
org.onebusaway.container.model.IdentityBean<StopSequenceCollectionKey>
org.onebusaway.transit_data_federation.model.StopSequenceCollection
- All Implemented Interfaces:
- Serializable
public class StopSequenceCollection
- extends IdentityBean<StopSequenceCollectionKey>
A stop sequence collection contains a list of StopSequence
sequences
that are headed in the same direction for a particular
RouteCollectionEntry
, along with a general description of the
destinations for those stop sequences and general start and stop locations
for the sequences. Typically a stop sequence collection will be generated for
each direction of travel for a particular route.
- Author:
- bdferris
- See Also:
StopSequence
,
StopSequenceCollectionService
,
Serialized Form
StopSequenceCollection
public StopSequenceCollection()
getId
public StopSequenceCollectionKey getId()
- Specified by:
getId
in class IdentityBean<StopSequenceCollectionKey>
setId
public void setId(StopSequenceCollectionKey id)
- Specified by:
setId
in class IdentityBean<StopSequenceCollectionKey>
getPublicId
public String getPublicId()
setPublicId
public void setPublicId(String publicId)
getDescription
public String getDescription()
- Typically, the most frequently mentioned trip headsign for all the trips
that correspond to the stop sequences in the block is used as the general
destination description.
- Returns:
- a description of the general destination for the stop sequences in
the block
setDescription
public void setDescription(String description)
getStopSequences
public List<StopSequence> getStopSequences()
- Returns:
- the list of all stop sequences in the block
setStopSequences
public void setStopSequences(List<StopSequence> stopSequences)
getStartLocation
public com.vividsolutions.jts.geom.Point getStartLocation()
getStartLat
public double getStartLat()
setStartLat
public void setStartLat(double startLat)
getStartLon
public double getStartLon()
setStartLon
public void setStartLon(double startLon)
setStartLocation
public void setStartLocation(com.vividsolutions.jts.geom.Point startLocation)
getEndLat
public double getEndLat()
setEndLat
public void setEndLat(double endLat)
getEndLon
public double getEndLon()
setEndLon
public void setEndLon(double endLon)
getEndLocation
public com.vividsolutions.jts.geom.Point getEndLocation()
setEndLocation
public void setEndLocation(com.vividsolutions.jts.geom.Point endLocation)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 OneBusAway. All Rights Reserved.