org.onebusaway.transit_data_federation.services.realtime
Class VehicleLocationCacheEntry

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

public class VehicleLocationCacheEntry
extends Object


Constructor Summary
VehicleLocationCacheEntry(BlockInstance blockInstance)
           
 
Method Summary
 boolean addElement(VehicleLocationRecord record, ScheduledBlockLocation scheduledBlockLocation, ScheduleDeviationSamples samples)
           
 boolean closeIfStale(long time)
           
 BlockInstance getBlockInstance()
           
 VehicleLocationCacheElements getElements()
           
 boolean isClosed()
           
 boolean isClosedBecauseBlockInstanceChanged(BlockInstance blockInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleLocationCacheEntry

public VehicleLocationCacheEntry(BlockInstance blockInstance)
Method Detail

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 © 2011 OneBusAway. All Rights Reserved.