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

org.opentripplanner.transit.raptor.api.view.Worker Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.transit.raptor.api.view;


import org.opentripplanner.transit.raptor.api.path.Path;
import org.opentripplanner.transit.raptor.api.transit.RaptorTripSchedule;

import java.util.Collection;

/**
 * The worker perform the travel search. There are multiple implementation,
 * even some who do not return paths.
 *
 * @param  The TripSchedule type defined by the user of the raptor API.
 */
public interface Worker {

    /**
     * Perform the reouting request.
     * @return All paths found. Am empty set is returned if no patha are forund or
     * the algorithm do not collect paths.
     */
    Collection> route();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy