9428
|
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.uinfo; |
|
11 |
|
12 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
|
13 import org.dive4elements.river.client.shared.exceptions.ServerException; |
|
14 |
|
15 import test.AbstractBerechnungsartenTester.River; |
|
16 import test.IFilenameMapper; |
|
17 |
|
18 /** |
|
19 * @author Domenico Nardi Tironi |
|
20 * |
|
21 */ |
|
22 final class UinfoSalixHistoricalRunner extends UinfoSalixRunner { |
|
23 |
|
24 private final double fromPart; |
|
25 private final double toPart; |
|
26 private final String soundingName; |
|
27 |
|
28 public UinfoSalixHistoricalRunner(final IFilenameMapper file, final double from, final double to, final River river, final String scenarioChoice, |
|
29 final String soundingName, final double fromPart, final double toPart) throws ConnectionException, ServerException { |
|
30 super(file, from, to, river, scenarioChoice); |
|
31 this.fromPart = fromPart; |
|
32 this.toPart = toPart; |
|
33 this.soundingName = soundingName; |
|
34 } |
|
35 |
|
36 @Override |
|
37 protected void makeScenario() throws ConnectionException, ServerException { |
9439
|
38 super.feedAndGoSimpleTextInput("scenario_selection", this.getScenarioChoice()); |
9428
|
39 |
9439
|
40 super.feedAndGoSimpleTextInput("soundings", this.soundingName); |
9428
|
41 |
|
42 super.makeKmRange(this.fromPart, this.toPart, "ld_from_part", "ld_to_part"); |
|
43 |
|
44 } |
|
45 |
|
46 } |