@@ -15,10 +15,12 @@ public class SwissConfigAdapter {
15
15
protected static double downsamplingRate = 1.0 ;
16
16
protected static double replanningRate = 0.05 ;
17
17
18
+ protected static String prefix = "" ;
19
+
18
20
public static void run (String [] args , SwitzerlandConfigurator configurator , Consumer <Config > adapter )
19
21
throws CommandLine .ConfigurationException {
20
22
CommandLine cmd = new CommandLine .Builder (args ) //
21
- .requireOptions ("input-path" , "output-path" , "downsamplingRate" , "replanningRate" ) //
23
+ .requireOptions ("input-path" , "output-path" , "downsamplingRate" , "replanningRate" , "prefix" ) //
22
24
.allowOptions ("activity-list" , "hasFreight" ) //
23
25
.build ();
24
26
@@ -34,6 +36,8 @@ public static void run(String[] args, SwitzerlandConfigurator configurator, Cons
34
36
35
37
downsamplingRate = Double .parseDouble (cmd .getOptionStrict ("downsamplingRate" ));
36
38
39
+ prefix = cmd .getOptionStrict ("prefix" );
40
+
37
41
Config config = ConfigUtils .loadConfig (cmd .getOptionStrict ("input-path" ));
38
42
configurator .updateConfig (config );
39
43
adapter .accept (config );
@@ -45,4 +49,4 @@ protected static void setCustomActivities(String activityList) {
45
49
hasCustomActivities = true ;
46
50
activityTypes = Arrays .asList (activityList .split ("\\ s*,\\ s*" ));
47
51
}
48
- }
52
+ }
0 commit comments