org.onebusaway.transit_data_federation.services.tripplanner
Class TripInstance
java.lang.Object
org.onebusaway.transit_data_federation.services.tripplanner.TripInstance
public class TripInstance
- extends Object
A trip instance is the combination of a TripEntry
and a service date
for which that trip is active. The "service date" is the "midnight time" from
which the StopTimeEntry
entries are relative.
- Author:
- bdferris
- See Also:
TripEntry
TripInstance
public TripInstance(TripEntry trip,
long serviceDate)
getTrip
public TripEntry getTrip()
getServiceDate
public long getServiceDate()
- The service date that the trip instance is operating. This is the
"midnight" time relative to the stop times for the trip.
- Returns:
- the service date on which the trip is operating (Unix-time)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 OneBusAway. All Rights Reserved.