com.conveyal.gtfs.validator.model.ValidationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gtfs-lib Show documentation
Show all versions of gtfs-lib Show documentation
A library to load and index GTFS feeds of arbitrary size using disk-backed storage
package com.conveyal.gtfs.validator.model;
import com.conveyal.gtfs.GTFSFeed;
import com.conveyal.gtfs.error.GTFSError;
import com.conveyal.gtfs.stats.FeedStats;
import com.conveyal.gtfs.stats.model.FeedStatistic;
import java.io.Serializable;
import java.util.Date;
import java.util.NavigableSet;
public class ValidationResult implements Serializable {
public String fileName;
public String validationTimestamp;
public FeedStatistic feedStatistics;
public long errorCount;
public NavigableSet errors;
public ValidationResult (String fileName, GTFSFeed feed, FeedStats feedStats) {
this.fileName = fileName;
this.validationTimestamp = new Date().toString();
this.feedStatistics = new FeedStatistic(feedStats);
this.errorCount = feed.errors.size();
this.errors = feed.errors;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy