org.opentripplanner.standalone.config.updaters.MqttGtfsRealtimeUpdaterParameters 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.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;
}
}