public static StatsCondCalculatorConfig load() { ModuleConfig config = PlatformConfig.defaultConfig().getModuleConfig("statsCondCalculator"); Path binariesDir = config.getPathProperty("binariesDir"); Path runtimeHomeDir = config.getPathProperty("runtimeHomeDir"); Path tmpDir = config.getPathProperty("tmpDir"); Integer rngSeed = config.getOptionalIntegerProperty("rngSeed").orElse(null); boolean debug = config.getBooleanProperty("debug", false); Integer isdeterministic = config.getOptionalIntegerProperty("isdeterministic").orElse(null); Integer isuniform = config.getOptionalIntegerProperty("isuniform").orElse(null); Integer optFPF = config.getOptionalIntegerProperty("opt_FPF").orElse(null); Integer homothetic = config.getOptionalIntegerProperty("homothetic").orElse(null); return new StatsCondCalculatorConfig(binariesDir, runtimeHomeDir, tmpDir, isdeterministic, isuniform, optFPF, homothetic, rngSeed, debug); }
Path runtimeHomeDir = config.getPathProperty("runtimeHomeDir"); boolean debug = config.getBooleanProperty("debug", false); Integer checkModule0 = config.getOptionalIntegerProperty("checkModule0").orElse(null); double percpuGaussLoad = config.getDoubleProperty("percpuGaussLoad"); double percpuGaussRes = config.getDoubleProperty("percpuGaussRes"); double tolVar = config.getDoubleProperty("tolvar"); double nMinObsFract = config.getDoubleProperty("Nmin_obs_fract"); Integer nMinObsInterv = config.getOptionalIntegerProperty("Nmin_obs_interv").orElse(null); Integer imputationMeth = config.getOptionalIntegerProperty("imputation_meth").orElse(null); Integer nGaussians = config.getOptionalIntegerProperty("Ngaussians").orElse(null); Integer rngSeed = config.getOptionalIntegerProperty("rngSeed").orElse(null); Integer kOutlier = config.getOptionalIntegerProperty("koutlier").orElse(null); double tolerance = config.getDoubleProperty("tolerance"); Integer iterations = config.getOptionalIntegerProperty("iterations").orElse(null); double epsilo = config.getDoubleProperty("epsilo"); Integer conditionalSampling = config.getOptionalIntegerProperty("conditionalSampling").orElse(null); Integer tFlags = config.getOptionalIntegerProperty("tFlags").orElse(null); double histoEstremeQ = config.getDoubleProperty("histo_estremeQ"); double thresGUI = config.getDoubleProperty("thresGUI"); String nats = config.getStringProperty("nats", "All"); double nnz = config.getDoubleProperty("nnz"); Integer unimod = config.getOptionalIntegerProperty("unimod").orElse(null); Integer modoInv = config.getOptionalIntegerProperty("modo_inv").orElse(null); Integer isdeterministic = config.getOptionalIntegerProperty("isdeterministic").orElse(null); Integer isuniform = config.getOptionalIntegerProperty("isuniform").orElse(null); Integer optGUI = config.getOptionalIntegerProperty("opt_GUI").orElse(null); double pLoadDeterministic = config.getDoubleProperty("Pload_deterministic"); double qLoadDeterministic = config.getDoubleProperty("Qload_deterministic");
public static ForecastErrorsAnalysisParameters load() { ModuleConfig config = PlatformConfig.defaultConfig().getModuleConfig("fea-parameters"); DateTime baseCaseDate = DateTime.parse(config.getStringProperty("baseCaseDate")); Interval histoInterval = Interval.parse(config.getStringProperty("histoInterval")); String feAnalysisId = config.getStringProperty("feAnalysisId"); double ir = config.getDoubleProperty("ir"); Integer flagPQ = config.getIntProperty("flagPQ"); Integer method = config.getIntProperty("method"); Integer nClusters = config.getIntProperty("nClusters"); double percentileHistorical = config.getDoubleProperty("percentileHistorical"); Integer modalityGaussian = config.getOptionalIntegerProperty("modalityGaussian").orElse(null); Integer outliers = config.getOptionalIntegerProperty("outliers").orElse(null); Integer conditionalSampling = config.getOptionalIntegerProperty("conditionalSampling").orElse(null); Integer nSamples = config.getIntProperty("nSamples"); Set<Country> countries = config.getEnumSetProperty("countries", Country.class, DEFAULT_COUNTRIES); CaseType caseType = config.getEnumProperty("caseType", CaseType.class, DEFAULT_CASE_TYPE); boolean allInjections = config.getBooleanProperty("all-injections", DEFAULT_ALL_INJECTIONS); return new ForecastErrorsAnalysisParameters(baseCaseDate, histoInterval, feAnalysisId, ir, flagPQ, method, nClusters, percentileHistorical, modalityGaussian, outliers, conditionalSampling, nSamples, countries, caseType, allInjections); }
public static MontecarloSamplerConfig load() { ModuleConfig config = PlatformConfig.defaultConfig().getModuleConfig("montecarloSampler"); Path binariesDir = config.getPathProperty("binariesDir"); Path runtimeHomeDir = config.getPathProperty("runtimeHomeDir"); Path tmpDir = config.getPathProperty("tmpDir"); int optionSign = config.getIntProperty("optionSign"); int centering = config.getIntProperty("centering"); Integer fullDependence = config.getOptionalIntegerProperty("full_dependence").orElse(null); boolean copyFEFile = config.getBooleanProperty("copyFEFile", true); boolean debug = config.getBooleanProperty("debug", false); return new MontecarloSamplerConfig(binariesDir, runtimeHomeDir, tmpDir, optionSign, centering, fullDependence, copyFEFile, debug); }
public static SamplerWp41Config load() { ModuleConfig config = PlatformConfig.defaultConfig().getModuleConfig("samplerwp41"); Path runtimeHomeDir = config.getPathProperty("runtimeHomeDir"); Path binariesDir = config.getPathProperty("binariesDir", null); Path validationDir = config.getPathProperty("validationDir", null); double ir = config.getDoubleProperty("ir"); double tflag = config.getDoubleProperty("tflag"); Integer rngSeed = config.getOptionalIntegerProperty("rngSeed").orElse(null); int module3Timeout = config.getIntProperty("module3Timeout", MODULE3_DEFAULT_TIMEOUT); int parK = config.getIntProperty("par_k", -1); boolean debug = config.getBooleanProperty("debug", false); return new SamplerWp41Config(binariesDir, runtimeHomeDir, validationDir, ir, tflag, rngSeed, module3Timeout, parK, debug); }