comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/ConstantXYDepth.java @ 805:bb7afd783321

Removed trailing whitespace. Added more javadoc. gnv-artifacts/trunk@887 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 08 Apr 2010 11:31:44 +0000
parents 6cff63d0c434
children 05bf8534a35a
comparison
equal deleted inserted replaced
804:9058c08eac3a 805:bb7afd783321
1 package de.intevation.gnv.math; 1 package de.intevation.gnv.math;
2 2
3 import com.vividsolutions.jts.geom.Coordinate; 3 import com.vividsolutions.jts.geom.Coordinate;
4 4
5 /** 5 /**
6 * Instances of the implementation return a constant value.
7 *
6 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> 8 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
7 */ 9 */
8 public class ConstantXYDepth 10 public class ConstantXYDepth
9 implements XYDepth 11 implements XYDepth
10 { 12 {
13 /**
14 * The constant depth.
15 */
11 protected double depth; 16 protected double depth;
12 17
18 /**
19 * Default constructor. The constant depth = 0.
20 */
13 public ConstantXYDepth() { 21 public ConstantXYDepth() {
14 } 22 }
15 23
24 /**
25 * Construtor to create a ConstantXYDepth with a given depth.
26 * @param depth The constant depth.
27 */
16 public ConstantXYDepth(double depth) { 28 public ConstantXYDepth(double depth) {
17 this.depth = depth; 29 this.depth = depth;
18 } 30 }
19 31
20 public double depth(Coordinate coordinate) { 32 public double depth(Coordinate coordinate) {

http://dive4elements.wald.intevation.org