Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixLineAccess.java @ 9068:a5cf8d7bff3c
access uinfo.salx; tablePanel edit/non-edit merge
author | gernotbelger |
---|---|
date | Mon, 14 May 2018 18:24:35 +0200 |
parents | 5198066492a9 |
children | 611a523fc42f |
comparison
equal
deleted
inserted
replaced
9067:2ed3824a3d53 | 9068:a5cf8d7bff3c |
---|---|
25 */ | 25 */ |
26 final class SalixLineAccess extends RangeAccess { | 26 final class SalixLineAccess extends RangeAccess { |
27 | 27 |
28 static final String FIELD_DIFFID_CURRENT = "diffid_current"; | 28 static final String FIELD_DIFFID_CURRENT = "diffid_current"; |
29 static final String FIELD_DIFFID_HIST = "diffid_historical"; | 29 static final String FIELD_DIFFID_HIST = "diffid_historical"; |
30 // calculation_mode | |
31 // ld_from , ld_to | |
32 // use_scenario (boolean) | |
33 // ld_from_part; ld_to_part | |
34 // scenario_selection (mögliche Werte:"scenarioType.option1" "scenarioType.option2" "scenarioType.option3" | |
30 | 35 |
31 public SalixLineAccess(final UINFOArtifact artifact) { | 36 public SalixLineAccess(final UINFOArtifact artifact) { |
32 super(artifact); | 37 super(artifact); |
33 | 38 |
34 /* assert calculation mode */ | 39 /* assert calculation mode */ |
40 final double from = getFrom(); | 45 final double from = getFrom(); |
41 final double to = getTo(); | 46 final double to = getTo(); |
42 return new DoubleRange(from, to); | 47 return new DoubleRange(from, to); |
43 } | 48 } |
44 | 49 |
50 public boolean getUseScenario() { | |
51 return super.getBoolean("use_scenario"); | |
52 } | |
53 | |
54 public String getScenario() { | |
55 if (getUseScenario()) { | |
56 return getString("scenario_selection"); | |
57 } | |
58 return null; | |
59 } | |
60 | |
61 public double getFromPart() { | |
62 return super.getDouble("ld_from_part"); | |
63 } | |
64 | |
65 public double getToPart() { | |
66 return super.getDouble("ld_to_part"); | |
67 } | |
45 } | 68 } |