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

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

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.standalone.config.updaters;

import org.opentripplanner.standalone.config.NodeAdapter;
import org.opentripplanner.updater.stoptime.MqttGtfsRealtimeUpdater;

public class MqttGtfsRealtimeUpdaterParameters implements MqttGtfsRealtimeUpdater.Parameters {
  private final String url;
  private final String topic;
  private final String feedId;
  private final int qos;
  private final boolean fuzzyTripMatching;

  public MqttGtfsRealtimeUpdaterParameters(NodeAdapter c) {
    url = c.asText("url");
    topic = c.asText("topic");
    feedId = c.asText("feedId", null);
    qos = c.asInt("qos", 0);
    fuzzyTripMatching = c.asBoolean("fuzzyTripMatching", false);
  }

  public String getUrl() {
    return url;
  }

  public String getTopic() {
    return topic;
  }

  public String getFeedId() {
    return feedId;
  }

  public int getQos() {
    return qos;
  }

  public boolean getFuzzyTripMatching() {
    return fuzzyTripMatching;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy