org.opentripplanner.routing.fares.FareService 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.routing.fares;
import java.io.Serializable;
import org.opentripplanner.model.plan.Itinerary;
import org.opentripplanner.routing.core.Fare;
/**
* Computes a fare for a given sequence of Rides. The FareService is serialized
* as part of the Graph; Hence it should be {@link Serializable}.
*/
public interface FareService extends Serializable {
/**
* @param itinerary the OTP2 Itinerary for which we want to compute a fare
*/
Fare getCost(Itinerary itinerary);
}