Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixDerivateFacet.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | a0078e5e3b39 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
34 */ | 34 */ |
35 public class FixDerivateFacet | 35 public class FixDerivateFacet |
36 extends FixingsFacet | 36 extends FixingsFacet |
37 implements FacetTypes { | 37 implements FacetTypes { |
38 | 38 |
39 /** House logger. */ | 39 /** House log. */ |
40 private static Logger logger = Logger.getLogger(FixDerivateFacet.class); | 40 private static Logger log = Logger.getLogger(FixDerivateFacet.class); |
41 | 41 |
42 | 42 |
43 /** Trivial Constructor. */ | 43 /** Trivial Constructor. */ |
44 public FixDerivateFacet() { | 44 public FixDerivateFacet() { |
45 } | 45 } |
66 * @return the data. | 66 * @return the data. |
67 */ | 67 */ |
68 @Override | 68 @Override |
69 public Object getData(Artifact artifact, CallContext context) { | 69 public Object getData(Artifact artifact, CallContext context) { |
70 | 70 |
71 logger.debug("FixDerivateFacet.getData"); | 71 log.debug("FixDerivateFacet.getData"); |
72 if (!(artifact instanceof D4EArtifact)) { | 72 if (!(artifact instanceof D4EArtifact)) { |
73 logger.debug("Not an instance of FixationArtifact."); | 73 log.debug("Not an instance of FixationArtifact."); |
74 return null; | 74 return null; |
75 } | 75 } |
76 | 76 |
77 D4EArtifact flys = (D4EArtifact)artifact; | 77 D4EArtifact flys = (D4EArtifact)artifact; |
78 FixAnalysisAccess access = new FixAnalysisAccess(flys); | 78 FixAnalysisAccess access = new FixAnalysisAccess(flys); |
94 | 94 |
95 String[] paramNames = ff.getParameterNames(); | 95 String[] paramNames = ff.getParameterNames(); |
96 | 96 |
97 double[] coeffs = params.interpolate("km", currentKm, paramNames); | 97 double[] coeffs = params.interpolate("km", currentKm, paramNames); |
98 if (coeffs == null) { | 98 if (coeffs == null) { |
99 logger.warn("getData: coeffs == null"); | 99 log.warn("getData: coeffs == null"); |
100 return null; | 100 return null; |
101 } | 101 } |
102 | 102 |
103 org.dive4elements.river.artifacts.math.Function mf = | 103 org.dive4elements.river.artifacts.math.Function mf = |
104 fd.instantiate(coeffs); | 104 fd.instantiate(coeffs); |