org.onebusaway.transit_data_federation.impl.transit_graph
Class TripEntryImpl
java.lang.Object
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
TripEntryImpl
public TripEntryImpl()
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.