org.onebusaway.transit_data_federation.impl.transit_graph
Class TripEntryImpl

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

public class TripEntryImpl
extends Object
implements TripEntry, Serializable

See Also:
Serialized Form

Constructor Summary
TripEntryImpl()
           
 
Method Summary
 BlockEntryImpl getBlock()
           
 String getDirectionId()
           
 FrequencyEntry getFrequencyLabel()
          For trips that are operated with a fixed schedule, but marketed to riders as headway-based service (by applying a Frequency.getExactTimes() override value of 2 in their frequencies.txt GTFS), we attach the FrequencyEntry associated with this trip.
 org.onebusaway.gtfs.model.AgencyAndId getId()
          TripEntry Interface
 RouteEntry getRoute()
           
 RouteCollectionEntry getRouteCollection()
           
 org.onebusaway.gtfs.model.calendar.LocalizedServiceId getServiceId()
           
 org.onebusaway.gtfs.model.AgencyAndId getShapeId()
           
 List<StopTimeEntry> getStopTimes()
           
 double getTotalTripDistance()
           
 TripEntryImpl setBlock(BlockEntryImpl block)
           
 TripEntryImpl setDirectionId(String directionId)
           
 void setFrequencyLabel(FrequencyEntry frequencyLabel)
           
 TripEntryImpl setId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 TripEntryImpl setRoute(RouteEntryImpl route)
           
 TripEntryImpl setServiceId(org.onebusaway.gtfs.model.calendar.LocalizedServiceId serviceId)
           
 void setShapeId(org.onebusaway.gtfs.model.AgencyAndId shapeId)
           
 void setStopTimes(List<StopTimeEntry> stopTimes)
           
 void setTotalTripDistance(double totalTripDistance)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TripEntryImpl

public TripEntryImpl()
Method Detail

setId

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

setRoute

public TripEntryImpl setRoute(RouteEntryImpl route)

setDirectionId

public TripEntryImpl setDirectionId(String directionId)

setBlock

public TripEntryImpl setBlock(BlockEntryImpl block)

setServiceId

public TripEntryImpl setServiceId(org.onebusaway.gtfs.model.calendar.LocalizedServiceId serviceId)

setShapeId

public void setShapeId(org.onebusaway.gtfs.model.AgencyAndId shapeId)

setStopTimes

public void setStopTimes(List<StopTimeEntry> stopTimes)

setTotalTripDistance

public void setTotalTripDistance(double totalTripDistance)

setFrequencyLabel

public void setFrequencyLabel(FrequencyEntry frequencyLabel)

getId

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

Specified by:
getId in interface TripEntry

getRoute

public RouteEntry getRoute()
Specified by:
getRoute in interface TripEntry

getRouteCollection

public RouteCollectionEntry getRouteCollection()
Specified by:
getRouteCollection in interface TripEntry

getDirectionId

public String getDirectionId()
Specified by:
getDirectionId in interface TripEntry

getBlock

public BlockEntryImpl getBlock()
Specified by:
getBlock in interface TripEntry

getServiceId

public org.onebusaway.gtfs.model.calendar.LocalizedServiceId getServiceId()
Specified by:
getServiceId in interface TripEntry

getShapeId

public org.onebusaway.gtfs.model.AgencyAndId getShapeId()
Specified by:
getShapeId in interface TripEntry

getStopTimes

public List<StopTimeEntry> getStopTimes()
Specified by:
getStopTimes in interface TripEntry

getTotalTripDistance

public double getTotalTripDistance()
Specified by:
getTotalTripDistance in interface TripEntry
Returns:
distance, in meters

getFrequencyLabel

public FrequencyEntry getFrequencyLabel()
Description copied from interface: TripEntry
For trips that are operated with a fixed schedule, but marketed to riders as headway-based service (by applying a Frequency.getExactTimes() override value of 2 in their frequencies.txt GTFS), we attach the FrequencyEntry associated with this trip.

Specified by:
getFrequencyLabel in interface TripEntry
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 OneBusAway. All Rights Reserved.