comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQResult.java @ 8280:e8283197d889

Added new fraction to sq relation. * New diagram with "Geschiebetransport gesamt(Sohlhöhenrelevant)" * Added the new fraction to overview diagram.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 17 Sep 2014 09:01:27 +0200
parents af13ceeba52a
children
comparison
equal deleted inserted replaced
8276:7e54b27f4780 8280:e8283197d889
12 12
13 13
14 14
15 public class SQResult implements Serializable { 15 public class SQResult implements Serializable {
16 16
17 public static final int NUMBER_FRACTIONS = 6; 17 public static final int NUMBER_FRACTIONS = 7;
18 18
19 public static final int FRACTION_A = 0; 19 public static final int FRACTION_A = 0;
20 public static final int FRACTION_B = 1; 20 public static final int FRACTION_B = 1;
21 public static final int FRACTION_C = 2; 21 public static final int FRACTION_C = 2;
22 public static final int FRACTION_D = 3; 22 public static final int FRACTION_D = 3;
23 public static final int FRACTION_E = 4; 23 public static final int FRACTION_E = 4;
24 public static final int FRACTION_F = 5; 24 public static final int FRACTION_F = 5;
25 public static final int FRACTION_G = 6;
25 26
26 protected double km; 27 protected double km;
27 protected SQFractionResult[] fractions; 28 protected SQFractionResult[] fractions;
28 29
29 public SQResult() { 30 public SQResult() {
46 this.fractions[idx] = fraction; 47 this.fractions[idx] = fraction;
47 } 48 }
48 } 49 }
49 50
50 public static final String [] FRACTION_NAMES = { 51 public static final String [] FRACTION_NAMES = {
51 "A", "B", "C", "D", "E", "F" 52 "A", "B", "C", "D", "E", "F", "G"
52 }; 53 };
53 54
54 public String getFractionName(int idx) { 55 public String getFractionName(int idx) {
55 return idx >= 0 && idx < FRACTION_NAMES.length 56 return idx >= 0 && idx < FRACTION_NAMES.length
56 ? FRACTION_NAMES[idx] 57 ? FRACTION_NAMES[idx]

http://dive4elements.wald.intevation.org