comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResults.java @ 8854:7bbfb24e6eec

SINFO - first prototype of BArt Fließtiefen
author gernotbelger
date Thu, 18 Jan 2018 18:34:41 +0100
parents
children 1009cab0f86b
comparison
equal deleted inserted replaced
8853:8c64617a7991 8854:7bbfb24e6eec
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 org.dive4elements.river.artifacts.sinfo.flowdepth;
11
12 import java.util.ArrayList;
13 import java.util.Collections;
14 import java.util.List;
15
16 import org.dive4elements.river.model.River;
17
18 /**
19 * @author Gernot Belger
20 *
21 */
22 public class FlowDepthCalculationResults{
23 private final List<FlowDepthCalculationResult> results = new ArrayList<>();
24
25 private final River river;
26
27 private final double from;
28
29 private final double to;
30
31 private final boolean useTkh;
32
33 public FlowDepthCalculationResults(final River river, final double from, final double to, final boolean useTkh) {
34 this.river = river;
35 this.from = from;
36 this.to = to;
37 this.useTkh = useTkh;
38 }
39
40 public River getRiver() {
41 return this.river;
42 }
43
44 public double getFrom() {
45 return this.from;
46 }
47
48 public double getTo() {
49 return this.to;
50 }
51
52 public boolean isUseTkh() {
53 return this.useTkh;
54 }
55
56 void addResult(final FlowDepthCalculationResult result) {
57 results.add(result);
58 }
59
60 public List<FlowDepthCalculationResult> getResults() {
61 return Collections.unmodifiableList(results);
62 }
63 }

http://dive4elements.wald.intevation.org