package com.conveyal.gtfs.error;

import com.conveyal.gtfs.model.Route;
import com.conveyal.gtfs.validator.model.Priority;

/**
 * Created by landon on 5/6/16.
 */
public class OverlappingTripsInBlockError extends GTFSError {

    public String[] tripIds;
    public String affectedEntityId;

    public OverlappingTripsInBlockError(String file, long line, String field, String affectedEntityId, Route route, String[] tripIds, Priority priority) {
        super(file, line, field);
        this.tripIds = tripIds;
        this.affectedEntityId = affectedEntityId;

    }

    @Override public String getMessage() {
        return "Trip Ids " + String.join(" & ", tripIds) + " overlap and share block Id " + affectedEntityId;
    }
}

@@ -280,24 +280,70 @@
 tedEntityId;
+%0A    public Priority priority = Priority.HIGH;
 %0A%0A    public
@@ -603,17 +603,16 @@
 tityId;%0A
-%0A
     %7D%0A%0A 

add priority to overlapping trips