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

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

package org.opentripplanner.standalone.config.updaters;

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

import java.util.UUID;

public class SiriSXUpdaterConfig {
  public static SiriSXUpdaterParameters create(String configRef, NodeAdapter c) {
    return new SiriSXUpdaterParameters(
        configRef,
        c.asText("feedId", null),
        c.asText("url"),
        c.asText("requestorRef", "otp-"+ UUID.randomUUID()),
        c.asInt("frequencySec", 60),
        c.asInt("earlyStartSec", -1),
        c.asInt("timeoutSec", -1),
        c.asBoolean("blockReadinessUntilInitialized", false)
    );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy