org.onebusaway.transit_data_federation.impl.transit_graph
Class BlockTripEntryImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.transit_graph.BlockTripEntryImpl
All Implemented Interfaces:
Serializable, BlockTripEntry, HasBlockStopTimes

public class BlockTripEntryImpl
extends Object
implements BlockTripEntry, Serializable

See Also:
Serialized Form

Constructor Summary
BlockTripEntryImpl()
           
 
Method Summary
 int getAccumulatedSlackTime()
          The amount of accumulated slack time from the start of the block to the start of the trip
 short getAccumulatedStopTimeIndex()
           
 int getArrivalTimeForIndex(int stopIndex)
          Stop Methods
 BlockConfigurationEntry getBlockConfiguration()
          BlockTripEntry Interface
 int getDepartureTimeForIndex(int stopIndex)
           
 double getDistanceAlongBlock()
           
 double getDistanceAlongBlockForIndex(int stopIndex)
           
 BlockTripEntry getNextTrip()
           
 AbstractBlockTripIndex getPattern()
          Pattern Methods
 BlockTripEntry getPreviousTrip()
           
 short getSequence()
           
 List<BlockStopTimeEntry> getStopTimes()
           
 TripEntry getTrip()
           
 void setAccumulatedSlackTime(int accumulatedSlackTime)
           
 void setAccumulatedStopTimeIndex(short accumulatedStopTimeIndex)
           
 void setBlockConfiguration(BlockConfigurationEntry blockConfiguration)
           
 void setDistanceAlongBlock(double distanceAlongBlock)
           
 void setNextTrip(BlockTripEntry nextTrip)
           
 void setPattern(AbstractBlockTripIndex pattern)
           
 void setPreviousTrip(BlockTripEntry previousTrip)
           
 void setSequence(short sequence)
           
 void setTrip(TripEntry trip)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockTripEntryImpl

public BlockTripEntryImpl()
Method Detail

setTrip

public void setTrip(TripEntry trip)

setBlockConfiguration

public void setBlockConfiguration(BlockConfigurationEntry blockConfiguration)

setSequence

public void setSequence(short sequence)

setAccumulatedStopTimeIndex

public void setAccumulatedStopTimeIndex(short accumulatedStopTimeIndex)

setAccumulatedSlackTime

public void setAccumulatedSlackTime(int accumulatedSlackTime)

setDistanceAlongBlock

public void setDistanceAlongBlock(double distanceAlongBlock)

setPreviousTrip

public void setPreviousTrip(BlockTripEntry previousTrip)

setNextTrip

public void setNextTrip(BlockTripEntry nextTrip)

setPattern

public void setPattern(AbstractBlockTripIndex pattern)

getBlockConfiguration

public BlockConfigurationEntry getBlockConfiguration()
BlockTripEntry Interface

Specified by:
getBlockConfiguration in interface BlockTripEntry

getTrip

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

getStopTimes

public List<BlockStopTimeEntry> getStopTimes()
Specified by:
getStopTimes in interface HasBlockStopTimes

getSequence

public short getSequence()
Specified by:
getSequence in interface BlockTripEntry

getAccumulatedStopTimeIndex

public short getAccumulatedStopTimeIndex()
Specified by:
getAccumulatedStopTimeIndex in interface BlockTripEntry

getAccumulatedSlackTime

public int getAccumulatedSlackTime()
Description copied from interface: BlockTripEntry
The amount of accumulated slack time from the start of the block to the start of the trip

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

getDistanceAlongBlock

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

getPreviousTrip

public BlockTripEntry getPreviousTrip()
Specified by:
getPreviousTrip in interface BlockTripEntry

getNextTrip

public BlockTripEntry getNextTrip()
Specified by:
getNextTrip in interface BlockTripEntry

getArrivalTimeForIndex

public int getArrivalTimeForIndex(int stopIndex)
Description copied from interface: BlockTripEntry
Stop Methods

Specified by:
getArrivalTimeForIndex in interface BlockTripEntry

getDepartureTimeForIndex

public int getDepartureTimeForIndex(int stopIndex)
Specified by:
getDepartureTimeForIndex in interface BlockTripEntry

getDistanceAlongBlockForIndex

public double getDistanceAlongBlockForIndex(int stopIndex)
Specified by:
getDistanceAlongBlockForIndex in interface BlockTripEntry

getPattern

public AbstractBlockTripIndex getPattern()
Description copied from interface: BlockTripEntry
Pattern Methods

Specified by:
getPattern in interface BlockTripEntry

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.