Package | Description |
---|---|
org.transitime.core |
Contains the core classes that process the AVL data and create predictions,
arrival/departure times, headway, etc.
|
org.transitime.core.travelTimes |
Code for determining travel times based on historic AVL based data.
|
org.transitime.db.structs |
Contains the descriptions of the classes for the objects that are read
and written to the database.
|
org.transitime.gtfs |
Contains classes for reading and writing GTFS configuration data.
|
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 |
---|---|
Trip |
VehicleState.getTrip()
Returns the current Trip for the vehicle.
|
Trip |
SpatialMatch.getTrip() |
Trip |
TemporalMatcher.matchToLayoverStopEvenIfOffRoute(AvlReport avlReport,
java.util.List<Trip> potentialTrips)
Returns the next trip that the vehicle could get to in time.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Trip |
TemporalMatcher.matchToLayoverStopEvenIfOffRoute(AvlReport avlReport,
java.util.List<Trip> potentialTrips)
Returns the next trip that the vehicle could get to in time.
|
Constructor and Description |
---|
SpatialMatch(SpatialMatch toCopy,
Trip newTrip)
For making a copy of the SpatialMatch for the same trip pattern but for a
new trip/block.
|
Modifier and Type | Method and Description |
---|---|
Trip |
TravelTimeInfo.getTrip() |
Modifier and Type | Method and Description |
---|---|
TravelTimeInfoWithHowSet |
TravelTimeInfoMap.getBestMatch(Trip trip,
int stopPathIndex)
For when don't have historic data for a trip.
|
Modifier and Type | Method and Description |
---|---|
TravelTimeInfoMap |
TravelTimesProcessor.createTravelTimesFromMaps(java.util.Map<java.lang.String,Trip> tripMap)
Takes the data from the stopTimesMap and travelTimesMap and creates
corresponding travel times.
|
Constructor and Description |
---|
TravelTimeInfo(Trip trip,
int stopPathIndex,
int stopTime,
java.util.List<java.lang.Integer> travelTimes,
double travelTimeSegLength)
Member Functions
|
TravelTimeInfoWithHowSet(Trip trip,
int stopPathIndex,
int stopTime,
java.util.List<java.lang.Integer> travelTimes,
double travelTimeSegLength,
TravelTimesForStopPath.HowSet howSet)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
Trip |
Block.getTrip(int tripIndex)
Returns the trip specified by the tripIndex
|
static Trip |
Trip.getTrip(org.hibernate.Session session,
int configRev,
java.lang.String tripId)
Returns specified Trip object for the specified configRev and tripId.
|
Trip |
Block.getTrip(java.lang.String tripId)
Returns the trip for the block as specified by the tripId parameter
|
static Trip |
Trip.getTripByShortName(org.hibernate.Session session,
int configRev,
java.lang.String tripShortName)
Returns specified Trip object for the specified configRev and
tripShortName.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Trip> |
TripPattern.getTrips()
NOTE: the Trip List is not available when the object has been read from the
database.
|
java.util.List<Trip> |
Block.getTrips()
Uses lazy initialization to determine the trips for the block.
|
static java.util.Map<java.lang.String,Trip> |
Trip.getTrips(org.hibernate.Session session,
int configRev)
Returns map of Trip objects for the specified configRev.
|
java.util.List<Trip> |
Block.getTripsCurrentlyActive(AvlReport avlReport)
For this block determines which trips are currently active.
|
Modifier and Type | Method and Description |
---|---|
void |
TripPattern.addTrip(Trip trip)
When processing a new trip let the TripPattern know that
this additional Trip refers to it.
|
int |
Block.getTripIndex(Trip trip)
Returns for the specified trip the index into the trips list for the
block
|
Constructor and Description |
---|
TravelTimesForStopPath(int configRev,
int travelTimesRev,
java.lang.String stopPathId,
double travelTimeSegmentDistance,
java.util.List<java.lang.Integer> travelTimesMsec,
int stopTimeMsec,
int daysOfWeekOverride,
TravelTimesForStopPath.HowSet howSet,
Trip trip)
Constructs a new TravelTimesForStopPath object.
|
TravelTimesForTrip(int configRev,
int travelTimesRev,
Trip trip)
Simple constructor.
|
Trip(Trip tripFromStopTimes,
int frequenciesBasedStartTime)
Creates a copy of the Trip object but adjusts the startTime, endTime, and
scheduledTimesMap according to the frequenciesBasedStartTime.
|
Trip(Trip tripFromStopTimes,
int frequenciesBasedStartTime,
int frequenciesBasedEndTime)
Creates a copy of the Trip object but adjusts the startTime, endTime, and
scheduledTimesMap according to the frequenciesBasedStartTime.
|
TripPattern(int configRev,
java.lang.String shapeId,
java.util.List<StopPath> stopPaths,
Trip trip,
GtfsData gtfsData)
Create a TripPattern.
|
Constructor and Description |
---|
Block(int configRev,
java.lang.String blockId,
java.lang.String serviceId,
int startTime,
int endTime,
java.util.List<Trip> trips)
This constructor called when processing GTFS data and creating a Block to
be stored in the database.
|
Modifier and Type | Method and Description |
---|---|
Trip |
DbConfig.getTrip(java.lang.String tripId)
For more quickly getting a trip.
|
Trip |
DbConfig.getTripUsingTripShortName(java.lang.String tripShortName)
For more quickly getting a trip.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Trip> |
GtfsData.getTrips() |
java.util.Map<java.lang.String,Trip> |
DbConfig.getTrips()
Returns cached map of all Trips.
|
Modifier and Type | Method and Description |
---|---|
Trip |
IpcPrediction.getTrip()
Returns the trip associated with the prediction.
|
Constructor and Description |
---|
IpcActiveBlock(IpcBlock ipcBlock,
int activeTripIndex,
java.util.Collection<IpcVehicle> ipcVehicles,
Trip tripForSorting)
Constructor
|
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.
|
IpcPredictionsForRouteStopDest(Trip trip,
java.lang.String stopId,
double distanceToStop)
Constructor for creating a IpcPredictionsForRouteStopDest on the server
side.
|
IpcSchedTrip(Trip trip)
Constructor.
|
IpcTrip(Trip dbTrip)
Member Functions
|