org.onebusaway.transit_data_federation.impl.realtime
public final class BlockLocationRecordCollection extends Object implements Serializable
Constructor and Description |
---|
BlockLocationRecordCollection(long fromTime,
long toTime) |
BlockLocationRecordCollection(long fromTime,
long toTime,
SortedMap<Long,BlockLocationRecord> records) |
Modifier and Type | Method and Description |
---|---|
BlockLocationRecordCollection |
addRecord(BlockInstance blockInstance,
BlockLocationRecord record,
long windowSize) |
static BlockLocationRecordCollection |
createFromRecords(BlockInstance blockInstance,
List<BlockLocationRecord> records)
Convenience method that creates a link
BlockLocationRecordCollection from a list of records |
BlockInstance |
getBlockInstance() |
double |
getDistanceAlongBlockForTargetTime(long targetTime) |
long |
getFromTime() |
CoordinatePoint |
getLastLocationForTargetTime(long targetTime) |
double |
getLastOrientationForTargetTime(long targetTime) |
long |
getLastUpdateTime(long targetTime) |
long |
getMeasuredLastUpdateTime() |
EVehiclePhase |
getPhaseForTargetTime(long targetTime) |
double |
getScheduleDeviationForTargetTime(long targetTime) |
String |
getStatusForTargetTime(long targetTime) |
long |
getToTime() |
org.onebusaway.gtfs.model.AgencyAndId |
getVehicleId() |
boolean |
isEmpty() |
public BlockLocationRecordCollection(long fromTime, long toTime, SortedMap<Long,BlockLocationRecord> records)
public BlockLocationRecordCollection(long fromTime, long toTime)
public static BlockLocationRecordCollection createFromRecords(BlockInstance blockInstance, List<BlockLocationRecord> records)
BlockLocationRecordCollection
from a list of recordsrecords
- public BlockInstance getBlockInstance()
public org.onebusaway.gtfs.model.AgencyAndId getVehicleId()
public long getFromTime()
public long getToTime()
public long getMeasuredLastUpdateTime()
public boolean isEmpty()
public double getScheduleDeviationForTargetTime(long targetTime)
public double getDistanceAlongBlockForTargetTime(long targetTime)
public CoordinatePoint getLastLocationForTargetTime(long targetTime)
public double getLastOrientationForTargetTime(long targetTime)
public EVehiclePhase getPhaseForTargetTime(long targetTime)
public String getStatusForTargetTime(long targetTime)
public long getLastUpdateTime(long targetTime)
public BlockLocationRecordCollection addRecord(BlockInstance blockInstance, BlockLocationRecord record, long windowSize)
Copyright © 2014 OneBusAway. All Rights Reserved.