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

org.opentripplanner.standalone.config.updaters.GtfsRealtimeAlertsUpdaterParameters Maven / Gradle / Ivy

package org.opentripplanner.standalone.config.updaters;

import org.opentripplanner.standalone.config.NodeAdapter;
import org.opentripplanner.updater.alerts.GtfsRealtimeAlertsUpdater;

public class GtfsRealtimeAlertsUpdaterParameters
    extends PollingGraphUpdaterParameters
    implements GtfsRealtimeAlertsUpdater.Parameters {

  private final int earlyStartSec;

  private final String feedId;

  private final boolean fuzzyTripMatching;

  public GtfsRealtimeAlertsUpdaterParameters(NodeAdapter c)
  {
    super(c);
    earlyStartSec = c.asInt("earlyStartSec", 0);
    feedId = c.asText("feedId", null);
    fuzzyTripMatching = c.asBoolean("fuzzyTripMatching", false);
  }


  public int getEarlyStartSec() {
    return earlyStartSec; }

  public String getFeedId() {
    return feedId;
  }

  public boolean fuzzyTripMatching() {
    return fuzzyTripMatching;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy