Modified to better handle supplement trips.txt data.
Modified to better handle supplement trips.txt data.
Added logging for schedule based predictions module.
Just changed variable names and comments to make code more readable. No
functional changes.
Made code more readable. No functional changes.
Changed default revs to 0 so that works even if the ActiveRevisions not
yet written to database.
Added getAgencies() where one passes in a dbName instead of a session.
Changed to close session when getAgencies(dbName) is called.
Many changes to get system to work when a block interlines amongst
routes that have separate service IDs (which really happens!).
Just changed function name and comments to make code more readable. No
functional changes.
Changed so that can handle data from multple days. Previously was
getting matches from wrong day associated with a departure/arrival.
Merge branch 'master' of ssh://git@github.com/Transitime/core.git
Fixed typo in comment. No functional changes.
Changed default of
transitime.arrivalsDepartures.maxStopsWhenNoPreviousMatch from 4 to 1
because it is a problem if a vehicle becomes unpredictable after
generating arrival/departure times and then becomes predictable and
regenerates arrival/departures times for those same previous stops.
Should be really conservative about using this feature.
Simplified TripPattern by not using complicated inheritence. Instead,
now have TripPatternKey, a separate class, to act as the key in maps.
This makes the code easier to understand.
Improved comment. No functional changes.
Changed how travel time revs are handled. Now configRev and
travelTimeRev are included as columns for TravelTimesForStopPath so can
more easily remove data from old revisions.
Changed how Trip data is stored when updating travel times. Previously
was doing a saveOrUpdate() for every trip and using CascadeType.ALL to
try to get the data saved in the db. But found that the stop paths were
being deleted from the trip pattern to stop path join table. This is
likely a bug with Hibernate. But found that should have to call
saveOrUpdate() anyways. Since keeping the session open from when the
trips were first read in, simply need to close the session and Hibernate
determined which objects are "dirty" and automaticaly saves those. This
is far simpler and more efficient. Also changed to use the Hibernate
CascateType.SAVE_UPDATE instead of the non-Hibernate CascageType.All for
consistency in case do want to use saveOrUpdate().
 Improved comment. No functional changes.
Changed to make sure that don't have to many array elements for a Trip's
schedule times or a TravelTimesForStopPath travel times. If do then now
throws an exception.