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 ofStopSequence
sequences that are headed in the same direction for a particularRouteCollectionEntry
, 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
-
-
Constructor Summary
Constructors Constructor Description StopSequenceCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.double
getEndLat()
org.locationtech.jts.geom.Point
getEndLocation()
double
getEndLon()
StopSequenceCollectionKey
getId()
String
getPublicId()
double
getStartLat()
org.locationtech.jts.geom.Point
getStartLocation()
double
getStartLon()
List<StopSequence>
getStopSequences()
void
setDescription(String description)
void
setEndLat(double endLat)
void
setEndLocation(org.locationtech.jts.geom.Point endLocation)
void
setEndLon(double endLon)
void
setId(StopSequenceCollectionKey id)
void
setPublicId(String publicId)
void
setStartLat(double startLat)
void
setStartLocation(org.locationtech.jts.geom.Point startLocation)
void
setStartLon(double startLon)
void
setStopSequences(List<StopSequence> stopSequences)
String
toString()
-
Methods inherited from class org.onebusaway.container.model.IdentityBean
equals, hashCode
-
-
-
-
Method Detail
-
getId
public StopSequenceCollectionKey getId()
- Specified by:
getId
in classIdentityBean<StopSequenceCollectionKey>
-
setId
public void setId(StopSequenceCollectionKey id)
- Specified by:
setId
in classIdentityBean<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 org.locationtech.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(org.locationtech.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 org.locationtech.jts.geom.Point getEndLocation()
-
setEndLocation
public void setEndLocation(org.locationtech.jts.geom.Point endLocation)
-
-