org.opentripplanner.transit.raptor.api.view.Worker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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();
}