Added routeShortName to toString() to ease debugging. This is nice since
for some agencies such as SFMTA the route IDs change and don't clearly
indicate the name of the route.
When trips are frequency based changed determination of end time for
block to include the trip time. This will keep the block active even
when the time for the specific frequency has already passed.
Changed determination of arrival and departure time methods to not use
average for the old and new match times. That was simply wrong. The old
and new match times are both examined because one of them is a hard
limit, not an approximation. Therefore shouldn't be using average.
Logging TravelTimes debug logging really is too verbose, even for
playback. Therefore changed to provide only info logging for
TravelTimes.
Still wasn't handling rounding properly in handleIntermediateStops()
when speedRatio was below 0.5. Now fixed.
Updated atStop() so that it works even for when the stop path is really
long for a layover path.
Took out unused foreign key test.
Added whitespace. No functional changes.
Moved incorrect comment. No functional changes.
Added logging of VehicleEvents to both log file and to database. This
should help in understanding why vehicles sometimes become
unpredictable.
Some formatting changes. No functional changes.
Improved a comment. No functional changes.
Moved the Base classes to be named CsvBase and CsvBaseReader and moved
them from gtfs package to utils.csv so that they can be used with other
CSV files.
Fixed comment. No functional changes.
Fixed comment. No functional changes.
Made major changes to how AVL input is handled. Now it is all done using
regular Module objects. This greatly made code more straight forward and
allowed the addition of AVL via a CSV file. Also can now completely
bypass JMS as long as a single thread for processing the AVL data is
sufficient.
Moved the Base classes to be named CsvBase and CsvBaseReader and moved
them from gtfs package to utils.csv so that they can be used with other
CSV files.
Changed AVL logging to use DEFAULT_PATTERN instead of DATA_PATTERN since
the file is for logging anything AVL related, including debug messages
and such. The AVL file is not just for logging AVL data.
The startDate and endDate are now specified by command line argument
instead of being hard coded so that don't have to change the source code
every time want to try a different date.