org.onebusaway.transit_data_federation.model
Class StopSequenceCollection

java.lang.Object
  extended by org.onebusaway.container.model.IdentityBean<StopSequenceCollectionKey>
      extended by 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

Constructor Summary
StopSequenceCollection()
           
 
Method Summary
 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()
           
 com.vividsolutions.jts.geom.Point getEndLocation()
           
 double getEndLon()
           
 StopSequenceCollectionKey getId()
           
 String getPublicId()
           
 double getStartLat()
           
 com.vividsolutions.jts.geom.Point getStartLocation()
           
 double getStartLon()
           
 List<StopSequence> getStopSequences()
           
 void setDescription(String description)
           
 void setEndLat(double endLat)
           
 void setEndLocation(com.vividsolutions.jts.geom.Point endLocation)
           
 void setEndLon(double endLon)
           
 void setId(StopSequenceCollectionKey id)
           
 void setPublicId(String publicId)
           
 void setStartLat(double startLat)
           
 void setStartLocation(com.vividsolutions.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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StopSequenceCollection

public StopSequenceCollection()
Method Detail

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 © 2011 OneBusAway. All Rights Reserved.