org.opentripplanner.api.resource.TransitTimingOutput Maven / Gradle / Ivy
package org.opentripplanner.api.resource;
/**
* Holds information to be included in the REST Response for debugging and profiling purposes of a
* single transit routing search.
*/
public class TransitTimingOutput {
/**
* Time taken for the initialization of the raptor router in nanoseconds.
*/
public final long tripPatternFilterTime;
/**
* Time taken for the access and egress routing in nanoseconds.
*/
public final long accessEgressTime;
/**
* Time taken for the raptor search in nanoseconds.
*/
public final long raptorSearchTime;
/**
* Time taken for mapping from the raptor paths to itinerary objects in nanoseconds.
*/
public final long itineraryCreationTime;
public TransitTimingOutput(
long tripPatternFilterTime,
long accessEgressTime,
long raptorSearchTime,
long itineraryCreationTime
) {
this.tripPatternFilterTime = tripPatternFilterTime;
this.accessEgressTime = accessEgressTime;
this.raptorSearchTime = raptorSearchTime;
this.itineraryCreationTime = itineraryCreationTime;
}
}