Package | Description |
---|---|
org.transitime.avl |
Contains the classes associated with AVL feeds including reading data
from an AVL feed and providing it to the main application usually via JMS for live feeds
but also by reading data and then directly calling AvlProcessor.processAvlReport(avlReport) for
other feeds, especially batch feeds used for debugging or testing.
|
org.transitime.core |
Contains the core classes that process the AVL data and create predictions,
arrival/departure times, headway, etc.
|
org.transitime.core.dataCache |
Contains server-side managers that keep track of real-time data such that
it can be made available to clients via RMI.
|
org.transitime.custom.missionBay |
Custom classes specifically for Mission Bay Shuttle
|
org.transitime.db.structs |
Contains the descriptions of the classes for the objects that are read
and written to the database.
|
org.transitime.feed.gtfsRt |
Contains the classes used for providing a GTFS-realtime feed.
|
org.transitime.ipc.data |
This package contains the low-level objects that are transmitted to
the clients via RMI.
|
Modifier and Type | Method and Description |
---|---|
AvlReport |
AvlClient.getAvlReport()
Returns the AVL report associated with this AvlClient
|
static AvlReport |
AvlCsvRecord.getAvlReport(org.apache.commons.csv.CSVRecord record,
java.lang.String fileName)
Returns AvlReport that the line in the CSV file represents.
|
AvlReport |
AvlCsvReader.handleRecord(org.apache.commons.csv.CSVRecord record,
boolean supplemental) |
Modifier and Type | Method and Description |
---|---|
void |
AvlExecutor.processAvlReport(AvlReport newAvlReport,
boolean... useTestExecutor)
Instead of writing AVL report to JMS topic this method directly processes
it.
|
void |
AvlCsvWriter.write(AvlReport avlReport)
Appends an AvlReport to the CSV file.
|
void |
AvlCsvWriter.write(AvlReport avlReport,
boolean transformForChinaMap)
Appends an AvlReport to the CSV file.
|
Constructor and Description |
---|
AvlClient(AvlReport avlReport)
Constructor
|
Modifier and Type | Method and Description |
---|---|
AvlReport |
VehicleState.getAvlReport()
Returns the current AvlReport.
|
AvlReport |
AvlProcessor.getLastAvlReport()
Returns the last regular (non-schedule based) AvlReport.
|
AvlReport |
VehicleState.getPreviousAvlReport(double minDistanceFromCurrentReport)
Looks in the AvlReport history for the most recent AvlReport that is at
least minDistanceFromCurrentReport from the current AvlReport.
|
AvlReport |
VehicleState.getPreviousAvlReport(int minimumAgeMsec)
Goes through the AVL history for the vehicle and returns AVL report that
is at least minimumAge old.
|
AvlReport |
VehicleState.getPreviousAvlReportFromSuccessfulMatch()
Returns the next to last AvlReport where successfully matched the
vehicle.
|
Modifier and Type | Method and Description |
---|---|
void |
AvlProcessor.cacheAvlReportWithoutProcessing(AvlReport avlReport)
Updates the VehicleState in the cache to have the new avlReport.
|
TemporalMatch |
TemporalMatcher.getBestTemporalMatchComparedToSchedule(AvlReport avlReport,
java.util.List<SpatialMatch> spatialMatches)
From the list of spatial matches passed in, determines which one has the
best valid temporal match.
|
Block |
BlockAssigner.getBlockAssignment(AvlReport avlReport)
Gets the appropriate block associated with the AvlReport.
|
java.lang.String |
BlockAssigner.getRouteIdAssignment(AvlReport avlReport)
Returns the route ID specified in the AVL feed.
|
static java.util.List<SpatialMatch> |
SpatialMatcher.getSpatialMatches(AvlReport avlReport,
Block block,
java.util.List<Trip> tripsToInvestigate)
Goes through the Block assignment data and determines the closest spatial
matches.
|
static java.util.List<SpatialMatch> |
SpatialMatcher.getSpatialMatchesIgnoringLayovers(AvlReport avlReport,
Block block,
java.util.List<Trip> tripsToInvestigate)
Goes through the Block assignment data and determines the closest spatial
matches that are not for layovers.
|
boolean |
VehicleState.hasNewAssignment(AvlReport avlReport)
Returns true if the AVL report has a different assignment than what is in
the VehicleState.
|
Trip |
TemporalMatcher.matchToLayoverStopEvenIfOffRoute(AvlReport avlReport,
java.util.List<Trip> potentialTrips)
Returns the next trip that the vehicle could get to in time.
|
boolean |
VehicleState.previousAssignmentProblematic(AvlReport avlReport)
Returns true if previously the vehicle had the same assignment but that
assignment was recently removed due to a problem where the vehicle
shouldn't be assigned to that assignment again.
|
void |
AvlProcessor.processAvlReport(AvlReport avlReport)
First does housekeeping for the AvlReport (stores it in db, logs it,
etc).
|
void |
VehicleState.setAvlReport(AvlReport avlReport)
Stores the specified avlReport into the history for the vehicle.
|
void |
TimeoutHandlerModule.storeAvlReport(AvlReport avlReport)
Stores the specified AVL report into map so know the last time received
AVL data for the vehicle.
|
Modifier and Type | Method and Description |
---|---|
void |
VehicleDataCache.cacheVehicleConfig(AvlReport avlReport)
To be called when vehicle encountered in AVL feed.
|
Modifier and Type | Method and Description |
---|---|
static void |
SfmtaApiCaller.postAvlReportWhenAppropriate(AvlReport avlReport)
To be called when system has a new AVL report.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<AvlReport> |
AvlReport.getAvlReportsFromDb(java.util.Date beginTime,
java.util.Date endTime,
java.lang.String vehicleId,
java.lang.String clause)
Gets list of AvlReports from database for the time span specified.
|
Modifier and Type | Method and Description |
---|---|
static VehicleEvent |
VehicleEvent.create(AvlReport avlReport,
TemporalMatch match,
java.lang.String eventType,
java.lang.String description,
boolean predictable,
boolean becameUnpredictable,
java.lang.String supervisor)
A simpler way to create a VehicleEvent that gets a lot of its info from
the avlReport and match params.
|
java.util.List<Trip> |
Block.getTripsCurrentlyActive(AvlReport avlReport)
For this block determines which trips are currently active.
|
Constructor and Description |
---|
AvlReport(AvlReport toCopy,
java.util.Date newTime)
Makes a copy of the AvlReport but uses the new time passed in.
|
AvlReport(AvlReport toCopy,
java.lang.String assignmentId,
AvlReport.AssignmentType assignmentType)
Makes a copy of the AvlReport but uses the new assignment info passed in.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<AvlReport> |
GtfsRtVehiclePositionsReader.getAvlReports(java.lang.String urlString)
Returns list of AvlReports read from GTFS-realtime file
specified by urlString.
|
Constructor and Description |
---|
IpcAvl(AvlReport a) |
IpcPrediction(AvlReport avlReport,
java.lang.String stopId,
int gtfsStopSeq,
Trip trip,
long predictionTime,
long actualPredictionTime,
boolean atEndOfTrip,
boolean predictionAffectedByWaitStop,
boolean isDelayed,
boolean lateAndSubsequentTripSoMarkAsUncertain,
IpcPrediction.ArrivalOrDeparture arrivalOrDeparture)
Constructs a Prediction object.
|