org.onebusaway.transit_data_federation.impl.transit_graph
Class BlockStopTimeEntryImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.transit_graph.BlockStopTimeEntryImpl
All Implemented Interfaces:
BlockStopTimeEntry

public class BlockStopTimeEntryImpl
extends Object
implements BlockStopTimeEntry


Constructor Summary
BlockStopTimeEntryImpl(StopTimeEntry stopTime, int blockSequence, BlockTripEntry trip, boolean hasNextStop)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getAccumulatedSlackTime()
          The amount of accumulated slack time from the start of the block to the arrival time at this stop.
 int getBlockSequence()
           
 double getDistanceAlongBlock()
           
 BlockStopTimeEntry getNextStop()
           
 StopTimeEntry getStopTime()
           
 BlockTripEntry getTrip()
           
 int hashCode()
           
 boolean hasNextStop()
           
 boolean hasPreviousStop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockStopTimeEntryImpl

public BlockStopTimeEntryImpl(StopTimeEntry stopTime,
                              int blockSequence,
                              BlockTripEntry trip,
                              boolean hasNextStop)
Method Detail

getStopTime

public StopTimeEntry getStopTime()
Specified by:
getStopTime in interface BlockStopTimeEntry

getTrip

public BlockTripEntry getTrip()
Specified by:
getTrip in interface BlockStopTimeEntry

getBlockSequence

public int getBlockSequence()
Specified by:
getBlockSequence in interface BlockStopTimeEntry

getDistanceAlongBlock

public double getDistanceAlongBlock()
Specified by:
getDistanceAlongBlock in interface BlockStopTimeEntry
Returns:
distance, in meters, from the start of the block

getAccumulatedSlackTime

public int getAccumulatedSlackTime()
Description copied from interface: BlockStopTimeEntry
The amount of accumulated slack time from the start of the block 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 BlockStopTimeEntry
Returns:
the accumulated slack time, in seconds

hasPreviousStop

public boolean hasPreviousStop()
Specified by:
hasPreviousStop in interface BlockStopTimeEntry

hasNextStop

public boolean hasNextStop()
Specified by:
hasNextStop in interface BlockStopTimeEntry

getNextStop

public BlockStopTimeEntry getNextStop()
Specified by:
getNextStop in interface BlockStopTimeEntry

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.