org.opentripplanner.routing.fares.FareService Maven / Gradle / Ivy
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);
}