Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/FixationArtifact.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 | c18098d0151a |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
29 */ | 29 */ |
30 public class FixationArtifact | 30 public class FixationArtifact |
31 extends D4EArtifact | 31 extends D4EArtifact |
32 implements WaterLineArtifact | 32 implements WaterLineArtifact |
33 { | 33 { |
34 /** The logger for this class. */ | 34 /** The log for this class. */ |
35 private static Logger logger = Logger.getLogger(FixationArtifact.class); | 35 private static Logger log = Logger.getLogger(FixationArtifact.class); |
36 | 36 |
37 /** The name of the artifact. */ | 37 /** The name of the artifact. */ |
38 public static final String ARTIFACT_NAME = "fixanalysis"; | 38 public static final String ARTIFACT_NAME = "fixanalysis"; |
39 | 39 |
40 /* FacetActivity for this artifact is registered in FixAnalysisCompute . */ | 40 /* FacetActivity for this artifact is registered in FixAnalysisCompute . */ |
41 | 41 |
42 /** | 42 /** |
43 * The default constructor. | 43 * The default constructor. |
44 */ | 44 */ |
45 public FixationArtifact() { | 45 public FixationArtifact() { |
46 logger.debug("ctor()"); | 46 log.debug("ctor()"); |
47 } | 47 } |
48 | 48 |
49 /** | 49 /** |
50 * Returns the name of the concrete artifact. | 50 * Returns the name of the concrete artifact. |
51 * | 51 * |
76 double wAtKm; | 76 double wAtKm; |
77 | 77 |
78 wAtKm = StaticWKmsArtifact.getWAtKm(wkms, km); | 78 wAtKm = StaticWKmsArtifact.getWAtKm(wkms, km); |
79 | 79 |
80 if (wAtKm == -1 || Double.isNaN(wAtKm)) { | 80 if (wAtKm == -1 || Double.isNaN(wAtKm)) { |
81 logger.warn("Waterlevel at km " + km + " unknown."); | 81 log.warn("Waterlevel at km " + km + " unknown."); |
82 return new Lines.LineData(new double[][] {{}}, 0d, 0d); | 82 return new Lines.LineData(new double[][] {{}}, 0d, 0d); |
83 } | 83 } |
84 | 84 |
85 // This should be FixRealizationResult, which can be getWQKms()ed | 85 // This should be FixRealizationResult, which can be getWQKms()ed |
86 return Lines.createWaterLines(csl.getPoints(), wAtKm); | 86 return Lines.createWaterLines(csl.getPoints(), wAtKm); |