Commit a9f6a29e authored by Daniel Lehmberg's avatar Daniel Lehmberg
Browse files

add option to VadereConfig

parent 1b1a8a44
......@@ -5,6 +5,7 @@ import java.util.ArrayList;
import java.util.Random;
import org.vadere.simulator.models.osm.PedestrianOSM;
import org.vadere.util.config.VadereConfig;
import org.vadere.util.geometry.shapes.VPoint;
/**
......@@ -24,8 +25,8 @@ public abstract class StepCircleOptimizer {
private ArrayList<OptimizationMetric> currentMetricValues;
protected StepCircleOptimizer(){
// TODO: read if the metric should be computed from a config file, see issue #243
this.computeMetric = false;
this.computeMetric = VadereConfig.getConfig().getBoolean("Testing.compareBruteForceSolution");
if(this.computeMetric){
this.currentMetricValues = new ArrayList<>();
......
......@@ -152,6 +152,7 @@ public class VadereConfig {
defaultConfig.put("SettingsDialog.outputDirectory.path", ".");
defaultConfig.put("SettingsDialog.snapshotDirectory.path", ".");
defaultConfig.put("SettingsDialog.showLogo", "false");
defaultConfig.put("Testing.compareBruteForceSolution", "false");
defaultConfig.put("TopographyCreator.dotRadius", "0.5");
return defaultConfig;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment