Mercurial > dive4elements > river
view artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResults.java @ 8882:f762fadc5313
Further work on SINFO-FlowDepth
author | gernotbelger |
---|---|
date | Fri, 09 Feb 2018 16:11:47 +0100 |
parents | 1009cab0f86b |
children | 7a8c12706834 |
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 org.dive4elements.river.artifacts.sinfo.flowdepth; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.dive4elements.river.model.River; /** * @author Gernot Belger */ public final class FlowDepthCalculationResults { private final List<FlowDepthCalculationResult> results = new ArrayList<>(); private final River river; private final double from; private final double to; private final boolean useTkh; private final String calcModeLabel; private final String user; public FlowDepthCalculationResults(final String calcModeLabel, final String user, final River river, final double from, final double to, final boolean useTkh) { this.calcModeLabel = calcModeLabel; this.user = user; this.river = river; this.from = from; this.to = to; this.useTkh = useTkh; } public String getCalcModeLabel() { return this.calcModeLabel; } public String getUser() { return this.user; } public River getRiver() { return this.river; } public double getFrom() { return this.from; } public double getTo() { return this.to; } public boolean isUseTkh() { return this.useTkh; } void addResult(final FlowDepthCalculationResult result) { this.results.add(result); } public List<FlowDepthCalculationResult> getResults() { return Collections.unmodifiableList(this.results); } }