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

org.opentripplanner.api.resource.TransitTimingOutput Maven / Gradle / Ivy

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy