org.onebusaway.transit_data_federation.impl.transit_graph
Class FrequencyBlockStopTimeEntryImpl
java.lang.Object
org.onebusaway.transit_data_federation.impl.transit_graph.FrequencyBlockStopTimeEntryImpl
- All Implemented Interfaces:
- FrequencyBlockStopTimeEntry
public class FrequencyBlockStopTimeEntryImpl
- extends Object
- implements FrequencyBlockStopTimeEntry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FrequencyBlockStopTimeEntryImpl
public FrequencyBlockStopTimeEntryImpl(BlockStopTimeEntry blockStopTime,
FrequencyEntry frequency)
getStopTime
public BlockStopTimeEntry getStopTime()
- Specified by:
getStopTime
in interface FrequencyBlockStopTimeEntry
getFrequency
public FrequencyEntry getFrequency()
- Specified by:
getFrequency
in interface FrequencyBlockStopTimeEntry
getStopTimeOffset
public int getStopTimeOffset()
- Description copied from interface:
FrequencyBlockStopTimeEntry
- If you were to extrapolate out a schedule for all the frequency-based stop
times for a given frequency-based trip, we'd start with the first stop time
at
FrequencyEntry.getStartTime()
and then schedule the successive
stops relative to their change in arrival+departure time in the underlying
stop time. Repeating the scheduled at the specified frequency, each stop
time at a particular stop will occur every n seconds, as determined by the
headway. Each stop time at the same stop will also be consistently offset
from the FrequencyEntry.getStartTime()
by the same amount, modulo
the headway. This method returns that offset.
As if that explanation is clear at all...
- Specified by:
getStopTimeOffset
in interface FrequencyBlockStopTimeEntry
- Returns:
Copyright © 2012 OneBusAway. All Rights Reserved.