org.onebusaway.transit_data_federation.services.realtime
Class VehicleLocationCacheElements

java.lang.Object
  extended by org.onebusaway.transit_data_federation.services.realtime.VehicleLocationCacheElements

public class VehicleLocationCacheElements
extends Object


Constructor Summary
VehicleLocationCacheElements(BlockInstance blockInstance)
           
VehicleLocationCacheElements(BlockInstance blockInstance, VehicleLocationCacheElement element)
           
 
Method Summary
 VehicleLocationCacheElements extend(VehicleLocationCacheElement element)
           
 BlockInstance getBlockInstance()
           
 VehicleLocationCacheElement getElementForTimestamp(long targetTime)
           
 List<VehicleLocationCacheElement> getElements()
           
 VehicleLocationCacheElement getLastElement()
           
 org.onebusaway.collections.Range getTimeRange()
           
 boolean isEmpty()
           
 VehicleLocationCacheElements pruneOlderThanTime(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleLocationCacheElements

public VehicleLocationCacheElements(BlockInstance blockInstance)

VehicleLocationCacheElements

public VehicleLocationCacheElements(BlockInstance blockInstance,
                                    VehicleLocationCacheElement element)
Method Detail

extend

public VehicleLocationCacheElements extend(VehicleLocationCacheElement element)

pruneOlderThanTime

public VehicleLocationCacheElements pruneOlderThanTime(long time)

getBlockInstance

public BlockInstance getBlockInstance()

isEmpty

public boolean isEmpty()

getTimeRange

public org.onebusaway.collections.Range getTimeRange()

getElements

public List<VehicleLocationCacheElement> getElements()

getElementForTimestamp

public VehicleLocationCacheElement getElementForTimestamp(long targetTime)

getLastElement

public VehicleLocationCacheElement getLastElement()


Copyright © 2011 OneBusAway. All Rights Reserved.