org.onebusaway.transit_data_federation.impl.transit_graph
Class StopTimeEntryImpl

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

public class StopTimeEntryImpl
extends Object
implements StopTimeEntry, Serializable

See Also:
Serialized Form

Constructor Summary
StopTimeEntryImpl()
           
 
Method Summary
 int getAccumulatedSlackTime()
          The amount of accumulated slack time from the start of the trip to the arrival time at this stop.
 int getArrivalTime()
           
 int getDepartureTime()
           
 int getDropOffType()
           
 int getId()
          StopTimeEntry Interface
 int getPickupType()
           
 int getSequence()
           
 double getShapeDistTraveled()
           
 int getShapePointIndex()
          The index into the list of shape points for this stop time's trip, for the shape point that comes right before this stops location along the shape.
 int getSlackTime()
          The amount of slack time at the current stop time.
 StopEntryImpl getStop()
           
 TripEntryImpl getTrip()
           
 boolean isShapeDistTraveledSet()
           
 void setAccumulatedSlackTime(int accumulatedSlackTime)
           
 void setArrivalTime(int arrivalTime)
           
 void setDepartureTime(int departureTime)
           
 void setDropOffType(int dropOffType)
           
 void setId(int id)
           
 void setPickupType(int pickupType)
           
 void setSequence(int sequence)
           
 void setShapeDistTraveled(double shapeDistTraveled)
           
 void setShapePointIndex(int shapePointIndex)
           
 StopTimeEntryImpl setStop(StopEntryImpl stop)
           
 StopTimeEntryImpl setTime(int time)
           
 void setTrip(TripEntryImpl trip)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StopTimeEntryImpl

public StopTimeEntryImpl()
Method Detail

setId

public void setId(int id)

setArrivalTime

public void setArrivalTime(int arrivalTime)

setDepartureTime

public void setDepartureTime(int departureTime)

setTime

public StopTimeEntryImpl setTime(int time)

setSequence

public void setSequence(int sequence)

setDropOffType

public void setDropOffType(int dropOffType)

setPickupType

public void setPickupType(int pickupType)

setStop

public StopTimeEntryImpl setStop(StopEntryImpl stop)

setTrip

public void setTrip(TripEntryImpl trip)

setShapePointIndex

public void setShapePointIndex(int shapePointIndex)

isShapeDistTraveledSet

public boolean isShapeDistTraveledSet()

setShapeDistTraveled

public void setShapeDistTraveled(double shapeDistTraveled)

setAccumulatedSlackTime

public void setAccumulatedSlackTime(int accumulatedSlackTime)

getId

public int getId()
StopTimeEntry Interface

Specified by:
getId in interface StopTimeEntry

getArrivalTime

public int getArrivalTime()
Specified by:
getArrivalTime in interface StopTimeEntry
Returns:
arrival time, in seconds since midnight

getDepartureTime

public int getDepartureTime()
Specified by:
getDepartureTime in interface StopTimeEntry
Returns:
departure time, in seconds since midnight

getSequence

public int getSequence()
Specified by:
getSequence in interface StopTimeEntry

getDropOffType

public int getDropOffType()
Specified by:
getDropOffType in interface StopTimeEntry

getPickupType

public int getPickupType()
Specified by:
getPickupType in interface StopTimeEntry

getStop

public StopEntryImpl getStop()
Specified by:
getStop in interface StopTimeEntry

getTrip

public TripEntryImpl getTrip()
Specified by:
getTrip in interface StopTimeEntry

getShapePointIndex

public int getShapePointIndex()
Description copied from interface: StopTimeEntry
The index into the list of shape points for this stop time's trip, for the shape point that comes right before this stops location along the shape. If no shape information is available, this index will be -1.

Specified by:
getShapePointIndex in interface StopTimeEntry
Returns:
the index for the preceding shape point, or -1 if no shape info

getShapeDistTraveled

public double getShapeDistTraveled()
Specified by:
getShapeDistTraveled in interface StopTimeEntry

getSlackTime

public int getSlackTime()
Description copied from interface: StopTimeEntry
The amount of slack time at the current stop time. Slack time usually results from a delay between the arrival and departure time at a given stop that could be shortened if the vehicle is running late.

Specified by:
getSlackTime in interface StopTimeEntry
Returns:
slack time, in seconds

getAccumulatedSlackTime

public int getAccumulatedSlackTime()
Description copied from interface: StopTimeEntry
The amount of accumulated slack time from the start of the trip to the arrival time at this stop. Slack time accumulates when there is scheduled time between the arrival and departure of a vehicle at a stop that could potentially be shortened if the vehicle is running late.

Specified by:
getAccumulatedSlackTime in interface StopTimeEntry
Returns:
the accumulated slack time, in seconds

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 OneBusAway. All Rights Reserved.