All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.conveyal.gtfs.validator.model.ValidationResult Maven / Gradle / Ivy

Go to download

A library to load and index GTFS feeds of arbitrary size using disk-backed storage

There is a newer version: 6.2.0
Show newest version
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