Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityDiameterResult.java @ 4171:1d8faeedda0c
Sort calculation results of a historical discharge calculation based on their start date.
Therefore, there are two new inner classes TimerangeItem and HistoricalTimerangeItem that wrap
a W, Q, Timerange (and delta Q). WQTimerange and HistoricalWQTimerange now implement a sort()
that return the results (TimerangeItem or HistoricalWQTimerangeItem) sorted by their start date.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 18 Oct 2012 09:28:51 +0200 |
parents | 9f9d5ada96ca |
children |
line wrap: on
line source
package de.intevation.flys.artifacts.model.minfo; import gnu.trove.TDoubleArrayList; import java.io.Serializable; public class BedQualityDiameterResult implements Serializable { public static enum DIAMETER_TYPE { D90, D84, D80, D75, D70, D60, D50, D40, D30, D25, D20, D16, D10, DMIN, DMAX } protected DIAMETER_TYPE type; protected TDoubleArrayList kms; protected boolean empty; public BedQualityDiameterResult () { empty = true; } public BedQualityDiameterResult ( String type, TDoubleArrayList km ) { if (km.size() > 0) { empty = false; } this.type = DIAMETER_TYPE.valueOf(type.toUpperCase()); this.kms = km; } public DIAMETER_TYPE getType() { return this.type; } public TDoubleArrayList getKms() { return this.kms; } public void setType(DIAMETER_TYPE type) { this.type = type; } public boolean isEmpty() { return empty; } }