Skip to content

Commit

Permalink
renamed notice and improved description
Browse files Browse the repository at this point in the history
  • Loading branch information
qcdyx committed Jan 15, 2025
1 parent 588003a commit 639d81f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* `stop_times.start_pickup_drop_off_window` or `stop_times.end_pickup_drop_off_window` are not
* defined for any trip of this route.
*
* <p>Generated notice: {@link ContinuousPickupDropOffNotice}.
* <p>Generated notice: {@link ForbiddenContinuousPickupDropOffNotice}.
*/
@GtfsValidator
public class ContinuousPickupDropOffValidator extends FileValidator {
Expand Down Expand Up @@ -48,7 +48,7 @@ public void validate(NoticeContainer noticeContainer) {
for (GtfsStopTime stopTime : stopTimeTable.byTripId(trip.tripId())) {
if (stopTime.hasStartPickupDropOffWindow() || stopTime.hasEndPickupDropOffWindow()) {
noticeContainer.addValidationNotice(
new ContinuousPickupDropOffNotice(
new ForbiddenContinuousPickupDropOffNotice(
route.csvRowNumber(),
trip.tripId(),
stopTime.startPickupDropOffWindow(),
Expand All @@ -61,11 +61,11 @@ public void validate(NoticeContainer noticeContainer) {

/**
* Continuous pickup or drop-off are forbidden when routes.continuous_pickup or
* routes.continuous_drop_off are 2 or 3 and stop_times.start_pickup_drop_off_window or
* routes.continuous_drop_off are 0, 2 or 3 and stop_times.start_pickup_drop_off_window or
* stop_times.end_pickup_drop_off_window are defined for any trip of this route.
*/
@GtfsValidationNotice(severity = ERROR)
public static class ContinuousPickupDropOffNotice extends ValidationNotice {
public static class ForbiddenContinuousPickupDropOffNotice extends ValidationNotice {
/** The row number of the route in the CSV file. */
private final int routeCsvRowNumber;

Expand All @@ -78,7 +78,7 @@ public static class ContinuousPickupDropOffNotice extends ValidationNotice {
/** The end time of the pickup/drop-off window. */
private final GtfsTime endPickupDropOffWindow;

public ContinuousPickupDropOffNotice(
public ForbiddenContinuousPickupDropOffNotice(
int routeCsvRowNumber,
String tripId,
GtfsTime startPickupDropOffWindow,
Expand Down

0 comments on commit 639d81f

Please sign in to comment.