comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/extreme/ExtremeResult.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/extreme/ExtremeResult.java@bd047b71ab37
children 4897a58c8746
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.artifacts.model.extreme;
2
3 import java.io.Serializable;
4
5 import org.dive4elements.river.artifacts.model.WQKms;
6 import org.dive4elements.river.artifacts.model.WQKmsResult;
7
8 import org.dive4elements.river.utils.KMIndex;
9
10 /** Result from an extreme value (extrapolation) calculation. */
11 public class ExtremeResult
12 implements Serializable, WQKmsResult
13 {
14 /** Curves that refer to actual values and a function for extrapolation. */
15 protected KMIndex<Curve> curves;
16
17 protected WQKms [] wqkms;
18
19 public ExtremeResult() {
20 }
21
22 public ExtremeResult(KMIndex<Curve> curves, WQKms [] wqkms) {
23 this.curves = curves;
24 this.wqkms = wqkms;
25 }
26
27 /**
28 * Gets the curves for this instance.
29 *
30 * @return The curves.
31 */
32 public KMIndex<Curve> getCurves() {
33 return this.curves;
34 }
35
36 /**
37 * Sets the curves for this instance.
38 *
39 * @param curves The curves.
40 */
41 public void setCurves(KMIndex<Curve> curves) {
42 this.curves = curves;
43 }
44
45 /**
46 * Gets the wqkms for this instance.
47 *
48 * @return The wqkms.
49 */
50 @Override
51 public WQKms[] getWQKms() {
52 return this.wqkms;
53 }
54
55 /**
56 * Gets the wqkms for this instance.
57 *
58 * @param index The index to get.
59 * @return The wqkms.
60 */
61 public WQKms getWQKms(int index) {
62 return this.wqkms[index];
63 }
64
65 /**
66 * Sets the wqkms for this instance.
67 *
68 * @param wqkms The wqkms.
69 */
70 public void setWQKms(WQKms[] wqkms) {
71 this.wqkms = wqkms;
72 }
73
74 /**
75 * Sets the wqkms for this instance.
76 *
77 * @param index The index to set.
78 * @param wqkms The wqkms.
79 */
80 public void setWQKms(int index, WQKms wqkms) {
81 this.wqkms[index] = wqkms;
82 }
83 }
84 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org