Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeFacet.java @ 3047:d20215a0afd8
Cosmetics, doc.
flys-artifacts/trunk@4616 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 06 Jun 2012 18:28:49 +0000 |
parents | 0905d1e7b37e |
children |
comparison
equal
deleted
inserted
replaced
3046:6e4ad35bcb11 | 3047:d20215a0afd8 |
---|---|
14 /** | 14 /** |
15 * Access Discharge Curve of a gauge. | 15 * Access Discharge Curve of a gauge. |
16 */ | 16 */ |
17 public class GaugeDischargeFacet extends DataFacet { | 17 public class GaugeDischargeFacet extends DataFacet { |
18 | 18 |
19 /** Private logger. */ | |
19 private static final Logger logger = | 20 private static final Logger logger = |
20 Logger.getLogger(GaugeDischargeFacet.class); | 21 Logger.getLogger(GaugeDischargeFacet.class); |
21 | 22 |
22 | 23 |
23 public GaugeDischargeFacet() { | 24 public GaugeDischargeFacet() { |
24 } | 25 } |
25 | 26 |
26 | 27 |
28 /** | |
29 * @param index Index translates to index of WQ-array. | |
30 * @param name Name of the facet. | |
31 * @param desc Description of the facet (visible in client). | |
32 */ | |
27 public GaugeDischargeFacet(int index, String name, String desc) { | 33 public GaugeDischargeFacet(int index, String name, String desc) { |
28 super(index, name, desc, ComputeType.ADVANCE, null, "state.gaugedischarge.init"); | 34 super(index, name, desc, ComputeType.ADVANCE, null, |
35 "state.gaugedischarge.init"); | |
29 } | 36 } |
30 | 37 |
31 | 38 |
32 public GaugeDischargeFacet( | 39 public GaugeDischargeFacet( |
33 int index, | 40 int index, |
51 copy.stateId = stateId; | 58 copy.stateId = stateId; |
52 return copy; | 59 return copy; |
53 } | 60 } |
54 | 61 |
55 | 62 |
63 /** | |
64 * @return wqkms corresponding to gauge of artifact and index of facet. | |
65 */ | |
56 @Override | 66 @Override |
57 public Object getData(Artifact artifact, CallContext context) { | 67 public Object getData(Artifact artifact, CallContext context) { |
58 if (logger.isDebugEnabled()) { | 68 if (logger.isDebugEnabled()) { |
59 logger.debug("Get data for discharge curves at index: " + | 69 logger.debug("Get data for discharge curves at index: " + |
60 index + " / stateId: " + stateId); | 70 index + " / stateId: " + stateId); |