9422
|
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.sinfo; |
|
11 |
|
12 import java.io.IOException; |
|
13 import java.util.ArrayList; |
|
14 import java.util.List; |
|
15 |
|
16 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
|
17 import org.dive4elements.river.client.shared.exceptions.ServerException; |
|
18 |
|
19 import test.AbstractBerechnungsartenTester.River; |
|
20 import test.AbstractModuleRunner; |
|
21 import test.ICalcMode; |
|
22 import test.SimpleRecommendation; |
|
23 |
|
24 /** |
|
25 * @author Domenico Nardi Tironi |
|
26 * |
|
27 */ |
|
28 final class SinfoFlowdepthMinMaxRunner extends AbstractModuleRunner { |
|
29 |
|
30 private final List<String> pairIds = new ArrayList<String>(); |
|
31 |
9567
|
32 public SinfoFlowdepthMinMaxRunner(final ICalcMode sinfoCalcFlowDepthMinmax, final double from, final double to, final River beispielfluss) |
|
33 throws ConnectionException, ServerException { |
|
34 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepthMinmax, from, to, beispielfluss); |
9422
|
35 } |
|
36 |
|
37 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { |
|
38 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); |
|
39 } |
|
40 |
|
41 @Override |
9567
|
42 public void runTest() throws ServerException, IOException { |
9422
|
43 |
|
44 /* Select River */ |
|
45 super.selectRiver(); |
|
46 |
|
47 /* Select calcmode */ |
|
48 super.selectCalcMode(); |
|
49 |
|
50 /* Select Range */ |
|
51 super.selectRange(); |
|
52 |
|
53 /* Select Fixpunkte */ |
|
54 feedAndGo(extractPairData(this.pairIds, "diffids"), 0); |
|
55 |
|
56 // Describe collection |
|
57 describeCollection(); // wichtig, damit die Facets erzeugt werden |
|
58 |
|
59 // /* Export calculation */ |
9567
|
60 super.runTests(); |
9422
|
61 } |
|
62 } |