All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.updater.bike_park.BikeParkUpdaterParameters Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
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