org.onebusaway.transit_data_federation.impl.transit_graph
Class BlockTripEntryImpl
java.lang.Object
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
BlockTripEntryImpl
public BlockTripEntryImpl()
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
- Returns:
- the position of this trip in the parent trip collection
BlockConfigurationEntry.getTrips()
.
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 © 2012 OneBusAway. All Rights Reserved.