# HG changeset patch # User Sascha L. Teichmann # Date 1349094648 -7200 # Node ID fdc6b1e64d01fafc95cca99d124bc922c3a1e518 # Parent ab3a4ad82ae11b08ccb59c7a60ecb9e345dc4fea Fix compiling bug diff -r ab3a4ad82ae1 -r fdc6b1e64d01 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Mon Oct 01 14:03:13 2012 +0200 +++ b/flys-artifacts/ChangeLog Mon Oct 01 14:30:48 2012 +0200 @@ -1,3 +1,8 @@ +2012-10-01 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/artifacts/model/sq/Measurement.java: + Make it compilable again. + 2012-10-01 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/model/sq/MeasurementFactory.java, diff -r ab3a4ad82ae1 -r fdc6b1e64d01 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/Measurement.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/Measurement.java Mon Oct 01 14:03:13 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/Measurement.java Mon Oct 01 14:30:48 2012 +0200 @@ -21,6 +21,8 @@ protected List sieves; + protected SieveArray sieveArray; + public Measurement() { } @@ -121,43 +123,10 @@ * @return The sieveArray. */ public SieveArray getSieveArray() { - return this.sieveArray; - } - - /** - * Gets the prev for this instance. - * - * @return The prev. - */ - public Measurement getPrev() { - return this.prev; - } - - /** - * Sets the prev for this instance. - * - * @param prev The prev. - */ - public void setPrev(Measurement prev) { - this.prev = prev; - } - - /** - * Gets the next for this instance. - * - * @return The next. - */ - public Measurement getNext() { - return this.next; - } - - /** - * Sets the next for this instance. - * - * @param next The next. - */ - public void setNext(Measurement next) { - this.next = next; + if (sieveArray == null) { + sieveArray = calculateSieveArray(); + } + return sieveArray; } protected Sieve findSieve(double diameter) { @@ -210,8 +179,7 @@ sieves.add(new Sieve(8d, eightValue)); sieves.add(new Sieve(4d, newFourValue)); - } - + } public SieveArray calculateSieveArray() {