org.opentripplanner.updater.bike_park.BikeParkUpdaterParameters 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.bike_park;
import org.opentripplanner.updater.PollingGraphUpdaterParameters;
public class BikeParkUpdaterParameters implements PollingGraphUpdaterParameters {
private final String configRef;
private final String url;
private final int frequencySec;
private final String namePrefix;
private final boolean zip;
public BikeParkUpdaterParameters(
String configRef,
String url,
String namePrefix,
int frequencySec,
boolean zip
) {
this.configRef = configRef;
this.url = url;
this.frequencySec = frequencySec;
this.namePrefix = namePrefix;
this.zip = zip;
}
@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;
}
KmlBikeParkDataSource.Parameters sourceParameters() {
return new KmlBikeParkDataSource.Parameters() {
@Override public String getUrl() { return url; }
@Override public String getNamePrefix() { return namePrefix; }
@Override public boolean zip() { return zip; }
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy