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

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

package org.opentripplanner.standalone.config.updaters;

import org.opentripplanner.ext.siri.updater.SiriSXUpdater;
import org.opentripplanner.standalone.config.NodeAdapter;

public class SiriSXUpdaterParameters extends PollingGraphUpdaterParameters
    implements SiriSXUpdater.Parameters {

  private final String url;
  private final String requestorRef;
  private final int earlyStartSec;
  private final String feedId;
  private final int timeoutSec;
  private final boolean blockReadinessUntilInitialized;

  public SiriSXUpdaterParameters(NodeAdapter c) {
    super(c);
    url = c.asText("url", null);
    requestorRef = c.asText("requestorRef", null);
    earlyStartSec = c.asInt("earlyStartSec", -1);
    feedId = c.asText("feedId", null);
    timeoutSec = c.asInt("timeoutSec", -1);
    blockReadinessUntilInitialized = c.asBoolean("blockReadinessUntilInitialized", false);
  }

  public String getUrl() { return url; }

  public String getRequestorRef() { return requestorRef; }

  public int getEarlyStartSec() { return earlyStartSec; }

  public String getFeedId() { return feedId; }

  public int getTimeoutSec() { return timeoutSec; }

  public boolean blockReadinessUntilInitialized() { return blockReadinessUntilInitialized; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy