public static OfflineWorkflowCreationParameters load() {
ModuleConfig config = PlatformConfig.defaultConfig().getModuleConfig("offline-default-creation-parameters");
Set<Country> countries = config.getEnumSetProperty("countries", Country.class);
DateTime baseCaseDate = config.getDateTimeProperty("baseCaseDate");
Interval histoInterval = config.getIntervalProperty("histoInterval");
boolean generationSampled = config.getBooleanProperty("generationSampled", false);
boolean boundariesSampled = config.getBooleanProperty("boundariesSampled", false);
boolean initTopo = config.getBooleanProperty("initTopo", DEFAULT_INIT_TOPO);
double correlationThreshold = config.getDoubleProperty("correlationThreshold", DEFAULT_CORRELATION_THRESHOLD);
double probabilityThreshold = config.getDoubleProperty("probabilityThreshold", DEFAULT_PROBABILITY_THRESHOLD);
boolean loadFlowTransformerVoltageControlOn = config.getBooleanProperty("loadFlowTransformerVoltageControlOn", DEFAULT_LOAD_FLOW_TRANSFORMER_VOLTAGE_CONTROL_ON);
boolean simplifiedWorkflow = config.getBooleanProperty("simplifiedWorkflow", DEFAULT_SIMPLIFIED_WORKFLOW);
boolean mergeOptimized = config.getBooleanProperty("mergeOptimized", DEFAULT_MERGE_OPTIMIZED);
Set<Country> attributesCountryFilter = config.getEnumSetProperty("attributesCountryFilter", Country.class, DEFAULT_ATTRIBUTES_COUNTRY_FILTER);
int attributesMinBaseVoltageFilter = config.getIntProperty("attributesMinBaseVoltageFilter", DEFAULT_ATTRIBUTES_MIN_BASE_VOLTAGE_FILTER);
return new OfflineWorkflowCreationParameters(countries, baseCaseDate, histoInterval, generationSampled, boundariesSampled,
initTopo, correlationThreshold, probabilityThreshold, loadFlowTransformerVoltageControlOn,
simplifiedWorkflow, mergeOptimized, attributesCountryFilter, attributesMinBaseVoltageFilter);
}
public OfflineWorkflowCreationParameters(Set<Country> countries, DateTime baseCaseDate, Interval histoInterval,