Mercurial > dive4elements > river
view gwt-client/src/test/java/test/SinfoFlowdepthMinMaxRunner.java @ 9203:9831f6c60473
AbstractSInfoLineProcessor refactoring
author | gernotbelger |
---|---|
date | Mon, 02 Jul 2018 13:00:59 +0200 |
parents | 48d87af1243e |
children |
line wrap: on
line source
/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde * Software engineering by * Björnsen Beratende Ingenieure GmbH * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt * * This file is Free Software under the GNU AGPL (>=v3) * and comes with ABSOLUTELY NO WARRANTY! Check out the * documentation coming with Dive4Elements River for details. */ package test; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; import org.dive4elements.river.client.shared.exceptions.ServerException; import test.BerechnungsartenTester.CalcMode; import test.BerechnungsartenTester.FilenameMapper; import test.BerechnungsartenTester.River; /** * @author Domenico Nardi Tironi * */ public class SinfoFlowdepthMinMaxRunner extends AbstractModuleRunner { private final List<String> pairIds = new ArrayList<String>(); public SinfoFlowdepthMinMaxRunner(final String username, final String password, final CalcMode sinfoCalcFlowDepthMinmax, final FilenameMapper helloWorldFile, final double from, final double to, final River beispielfluss) throws ConnectionException, ServerException { super(username, password, AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepthMinmax, helloWorldFile, from, to, beispielfluss); } public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); } @Override public void runTest(final boolean exportToFile) throws ServerException, IOException { /* Select River */ super.selectRiver(); /* Select calcmode */ super.selectCalcMode(); /* Select Range */ super.selectRange(); /* Select Fixpunkte */ feedAndGo(extractPairData(this.pairIds, "diffids"), 0); // Describe collection describeCollection(); // wichtig, damit die Facets erzeugt werden // /* Export calculation */ super.export(exportToFile); } }