9127
|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
|
2 * Software engineering by |
|
3 * Björnsen Beratende Ingenieure GmbH |
|
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
|
5 * |
|
6 * This file is Free Software under the GNU AGPL (>=v3) |
|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
|
8 * documentation coming with Dive4Elements River for details. |
|
9 */ |
|
10 package test; |
|
11 |
|
12 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
|
13 import org.dive4elements.river.client.shared.exceptions.ServerException; |
|
14 |
|
15 import test.BerechnungsartenTester.CalcMode; |
|
16 import test.BerechnungsartenTester.FilenameMapper; |
|
17 import test.BerechnungsartenTester.River; |
|
18 |
|
19 /** |
|
20 * @author Domenico Nardi Tironi |
|
21 * |
|
22 */ |
|
23 public class RunnerCreatorHelper { |
|
24 |
|
25 private final static String user = "belger"; |
|
26 private final static String pw = "belger"; |
|
27 |
|
28 public RunnerCreatorHelper() { |
|
29 |
|
30 } |
|
31 |
|
32 // HELPER-Methods: |
|
33 |
|
34 public final static ModuleRunner createSinfoFlowdepthMinMaxTest(final FilenameMapper helloWorldFile, final double from, final double to, |
|
35 final River beispielfluss) throws ConnectionException, ServerException { |
|
36 // TODO: make recommendationPair to method parameter if needed |
|
37 final ModuleRunner proof = new SinfoFlowdepthMinMaxRunner(user, pw, CalcMode.sinfo_calc_flow_depth_minmax, helloWorldFile, from, to, beispielfluss); |
|
38 proof.addRecommendationPair(new SimpleRecommendation("staticwqkms", "additionals-wstv-0-103", "sinfo_flowdepth_waterlevels"), |
|
39 new SimpleRecommendation("bedheight", "bedheight-single-36-2015-FP-2015_0-502", "sinfo_flowdepthminmax_heights")); |
|
40 |
|
41 return proof; |
|
42 } |
|
43 |
|
44 public final static ModuleRunner createSinfoFlowdepthTest(final FilenameMapper file, final double from, final double to, final River river, |
|
45 final boolean useTkh, final SimpleRecommendation rec0, final SimpleRecommendation rec1) throws ConnectionException, ServerException { |
|
46 final ModuleRunner proof = new SinfoFlowdepthTest(user, pw, CalcMode.sinfo_calc_flow_depth, file, from, to, river, useTkh); |
|
47 proof.addRecommendationPair(rec0, rec1); |
|
48 |
|
49 return proof; |
|
50 } |
|
51 |
|
52 } |