Skip to content

Commit

Permalink
Introduce timetable builder
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaturet committed Aug 5, 2024
1 parent 0447ec6 commit 12e7bc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/opentripplanner/model/TimetableBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ public class TimetableBuilder {
public TimetableBuilder() {}

public TimetableBuilder(Timetable tt) {
tripTimes.addAll(tt.getTripTimes());
serviceDate = tt.getServiceDate();
pattern = tt.getPattern();
serviceDate = tt.getServiceDate();
tripTimes.addAll(tt.getTripTimes());
frequencies.addAll(tt.getFrequencyEntries());
}

public TimetableBuilder withTripPattern(TripPattern tripPattern) {
Expand Down

0 comments on commit 12e7bc2

Please sign in to comment.