diff --git a/src/main/java/ch/naviqore/gtfs/schedule/model/GtfsScheduleBuilder.java b/src/main/java/ch/naviqore/gtfs/schedule/model/GtfsScheduleBuilder.java index 77a69ed0..608e66aa 100644 --- a/src/main/java/ch/naviqore/gtfs/schedule/model/GtfsScheduleBuilder.java +++ b/src/main/java/ch/naviqore/gtfs/schedule/model/GtfsScheduleBuilder.java @@ -23,10 +23,10 @@ * Provides a builder pattern implementation for constructing a {@link GtfsSchedule} instance. This class encapsulates * the complexity of assembling a GTFS schedule by incrementally adding components such as agencies, stops, routes, * trips, and calendars. The builder ensures that all components are added in a controlled manner and that the resulting - * schedule is consistent and ready for use. + * schedule is consistent. * - *
Instances of this class should be obtained through the static {@code builder()} method. This class uses - * a private constructor to enforce the use of the builder pattern.
+ *Instances of this class should be obtained through the static {@code GtfsSchedule.builder()} method. This class + * uses a private constructor to enforce the use of the builder pattern.
* * @author munterfi */ @@ -141,7 +141,6 @@ public GtfsScheduleBuilder addTransfer(String fromStopId, String toStopId, Trans throw new IllegalArgumentException("Stop " + toStopId + " does not exist"); } log.debug("Adding transfer {}-{} of type {} {}", fromStopId, toStopId, transferType, minTransferTime); - // TODO: Handle case when minTransferTime is missing, add transfers.txt to test data. fromStop.addTransfer(new Transfer(fromStop, toStop, transferType, minTransferTime)); return this; } diff --git a/src/test/java/ch/naviqore/Benchmark.java b/src/test/java/ch/naviqore/Benchmark.java index 85660ee2..fed21c7b 100644 --- a/src/test/java/ch/naviqore/Benchmark.java +++ b/src/test/java/ch/naviqore/Benchmark.java @@ -25,6 +25,9 @@ * Benchmark for Raptor routing algorithm. ** Measures the time it takes to route a number of requests using Raptor algorithm on large GTFS datasets. + *
+ * Note: To run this benchmark, ensure that the log level is set to INFO in the + * {@code src/test/resources/log4j2.properties} file. * * @author munterfi */