org.onebusaway.transit_data_federation.services.realtime
Class VehicleLocationCacheEntry
java.lang.Object
org.onebusaway.transit_data_federation.services.realtime.VehicleLocationCacheEntry
public class VehicleLocationCacheEntry
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VehicleLocationCacheEntry
public VehicleLocationCacheEntry(BlockInstance blockInstance)
getBlockInstance
public BlockInstance getBlockInstance()
isClosed
public boolean isClosed()
addElement
public boolean addElement(VehicleLocationRecord record,
ScheduledBlockLocation scheduledBlockLocation,
ScheduleDeviationSamples samples)
- Parameters:
record
- scheduledBlockLocation
- samples
-
- Returns:
- true if the element was successfully added, or false if the entry
is closed to new elements
isClosedBecauseBlockInstanceChanged
public boolean isClosedBecauseBlockInstanceChanged(BlockInstance blockInstance)
- Parameters:
blockInstance
-
- Returns:
- true if closed
closeIfStale
public boolean closeIfStale(long time)
- Parameters:
time
-
- Returns:
- true if closed
getElements
public VehicleLocationCacheElements getElements()
Copyright © 2012 OneBusAway. All Rights Reserved.