org.opentripplanner.updater.vehicle_rental.VehicleRentalUpdaterParameters 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.updater.vehicle_rental;
import org.opentripplanner.updater.PollingGraphUpdaterParameters;
import org.opentripplanner.updater.vehicle_rental.datasources.params.VehicleRentalDataSourceParameters;
public class VehicleRentalUpdaterParameters implements PollingGraphUpdaterParameters {
private final String configRef;
private final int frequencySec;
private final VehicleRentalDataSourceParameters source;
public VehicleRentalUpdaterParameters(
String configRef,
int frequencySec,
VehicleRentalDataSourceParameters source
) {
this.configRef = configRef;
this.frequencySec = frequencySec;
this.source = source;
}
@Override
public int getFrequencySec() {
return frequencySec;
}
/**
* The config name/type for the updater. Used to reference the configuration element.
*/
@Override
public String getConfigRef() {
return configRef;
}
public VehicleRentalDataSourceParameters sourceParameters() {
return source;
}
}