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 java.util.List; |
|
13 |
|
14 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
|
15 import org.dive4elements.river.client.shared.exceptions.ServerException; |
|
16 import org.dive4elements.river.client.shared.model.SalixZone; |
|
17 |
|
18 import test.AbstractBerechnungsartenTester.River; |
|
19 import test.IFilenameMapper; |
|
20 |
|
21 /** |
|
22 * @author Domenico Nardi Tironi |
|
23 * |
|
24 */ |
|
25 final class UinfoSalixSupraregionalRunner extends UinfoSalixRunner { |
|
26 |
|
27 private final List<SalixZone> supraregionalTable; |
|
28 |
|
29 public UinfoSalixSupraregionalRunner(final IFilenameMapper file, final double from, final double to, final River river, final String scenarioChoice, |
|
30 final List<SalixZone> supraRegionalTable) throws ConnectionException, ServerException { |
|
31 super(file, from, to, river, scenarioChoice); |
|
32 this.supraregionalTable = supraRegionalTable; |
|
33 } |
|
34 |
|
35 @Override |
|
36 protected void makeScenario() throws ConnectionException, ServerException { |
9441
|
37 super.feedAndGoSimpleTextInput("scenario_selection", this.getScenarioChoice()); |
9428
|
38 |
9441
|
39 super.feedAndGoSimpleTextInput("supraregional_table", SalixZone.parseListToDataString(this.supraregionalTable)); |
9428
|
40 |
|
41 } |
|
42 |
|
43 } |