WCAConfig { public static WCAConfig load() { return load(PlatformConfig.defaultConfig()); } WCAConfig(Path xpressHome, float reducedVariableRatio, boolean debug, boolean exportStates, Set<WCARestrictingThresholdLevel> restrictingThresholdLevels,
                     float margin, boolean ignoreVoltageConstraints, boolean activateFiltering, WCAPreventiveActionsFilter preventiveActionsFilter,
                     WCAPreventiveActionsOptimizer preventiveActionsOptimizer, boolean applyPreventiveActions, WCACurativeActionsOptimizer curativeActionsOptimizer,
                     float voltageLevelConstraintFilter, Set<Country> countryConstraintFilter, boolean filterPreventiveActions, boolean filterCurativeActions,
                     boolean loosenConstraints); static WCAConfig load(); static WCAConfig load(PlatformConfig platformConfig); Path getXpressHome(); float getReducedVariableRatio(); boolean isDebug(); boolean isExportStates(); Set<WCARestrictingThresholdLevel> getRestrictingThresholdLevels(); float getMargin(); boolean ignoreVoltageConstraints(); boolean activateFiltering(); WCAPreventiveActionsFilter getPreventiveActionsFilter(); WCAPreventiveActionsOptimizer getPreventiveActionsOptimizer(); boolean applyPreventiveActions(); WCACurativeActionsOptimizer getCurativeActionsOptimizer(); float getVoltageLevelConstraintFilter(); Set<Country> getCountryConstraintFilter(); boolean filterPreventiveActions(); boolean filterCurativeActions(); boolean loosenConstraints(); @Override String toString(); static final float DEFAULT_REDUCED_VARIABLE_RATIO; static final boolean DEFAULT_DEBUG; static final boolean DEFAULT_EXPORT_STATE; static final Set<WCARestrictingThresholdLevel> DEFAULT_RESTRICTING_THRESHOLD_LEVELS; static final float DEFAULT_MARGIN; static final boolean DEFAULT_IGNORE_VOLTAGE_CONSTRAINTS; static final boolean DEFAULT_ACTIVATE_FILTERING; static final WCAPreventiveActionsFilter DEFAULT_PREVENTIVE_ACTIONS_FILTER; static final WCAPreventiveActionsOptimizer DEFAULT_PREVENTIVE_ACTIONS_OPTIMIZER; static final boolean DEFAULT_APPLY_PREVENTIVE_ACTIONS; static final WCACurativeActionsOptimizer DEFAULT_CURATIVE_ACTIONS_OPTIMIZER; static final float DEFAULT_VOLTAGE_LEVEL_CONSTRAINTS_FILTER; static final Set<Country> DEFAULT_COUNTRY_CONSTRAINTS_FILTER; static final boolean DEFAULT_FILTER_PREVENTIVE_ACTIONS; static final boolean DEFAULT_FILTER_CURATIVE_ACTIONS; static final boolean DEFAULT_LOOOSEN_CONSTRAINTS; }
@Test public void testBasicConfig() throws Exception { WCAConfig config = WCAConfig.load(platformConfig); checkValues(config, xpressHome, WCAConfig.DEFAULT_REDUCED_VARIABLE_RATIO, WCAConfig.DEFAULT_DEBUG, WCAConfig.DEFAULT_EXPORT_STATE, WCAConfig.DEFAULT_RESTRICTING_THRESHOLD_LEVELS, WCAConfig.DEFAULT_MARGIN, WCAConfig.DEFAULT_IGNORE_VOLTAGE_CONSTRAINTS, WCAConfig.DEFAULT_ACTIVATE_FILTERING, WCAConfig.DEFAULT_PREVENTIVE_ACTIONS_FILTER, WCAConfig.DEFAULT_PREVENTIVE_ACTIONS_OPTIMIZER, WCAConfig.DEFAULT_APPLY_PREVENTIVE_ACTIONS, WCAConfig.DEFAULT_CURATIVE_ACTIONS_OPTIMIZER, WCAConfig.DEFAULT_VOLTAGE_LEVEL_CONSTRAINTS_FILTER, WCAConfig.DEFAULT_COUNTRY_CONSTRAINTS_FILTER, WCAConfig.DEFAULT_FILTER_PREVENTIVE_ACTIONS, WCAConfig.DEFAULT_FILTER_CURATIVE_ACTIONS, WCAConfig.DEFAULT_LOOOSEN_CONSTRAINTS); }