Skip to content

Commit

Permalink
make disabling of standard dashboards configurable through run param
Browse files Browse the repository at this point in the history
  • Loading branch information
simei94 committed Aug 26, 2024
1 parent 94442ff commit cde8a20
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/org/matsim/dashboard/KelheimSimWrapperRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ final class KelheimSimWrapperRunner implements MATSimAppCommand {
@CommandLine.Option(names = "--drt", defaultValue = "false", description = "create DRT + AV dashboards")
private boolean drt;

@CommandLine.Option(names = "--standard-dashboards", defaultValue = "false", description = "create standard dashboards (overview, trips...)")
private boolean standard;


private KelheimSimWrapperRunner(){
}
Expand All @@ -93,8 +96,12 @@ public Integer call() throws Exception {
//not sure if this is the best way to go, might be that the shape file would be automatically read by providing the --shp command line option
simwrapperCfg.defaultParams().shp = shp.getShapeFile().toString();
}
//skip default dashboards
simwrapperCfg.defaultDashboards = SimWrapperConfigGroup.Mode.disabled;

if (!standard) {
//skip default dashboards
simwrapperCfg.defaultDashboards = SimWrapperConfigGroup.Mode.disabled;
}

simwrapperCfg.defaultParams().mapCenter = "48.91265,11.89223";

//add dashboards according to command line parameters
Expand Down

0 comments on commit cde8a20

Please sign in to comment.