org.onebusaway.transit_data_federation.services.tripplanner
Class TripInstance

java.lang.Object
  extended by 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

Constructor Summary
TripInstance(TripEntry trip, long serviceDate)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getServiceDate()
          The service date that the trip instance is operating.
 TripEntry getTrip()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TripInstance

public TripInstance(TripEntry trip,
                    long serviceDate)
Method Detail

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