Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalDischargeWQFacet.java @ 4241:49cb65d5932d
Improved the historical discharge calculation.
The calculation now creates new HistoricalWQKms (new subclass of WQKms). Those WQKms are used
to create new facets from (new) type 'HistoricalDischargeCurveFacet'. The chart generator is
improved to support those facets.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 24 Oct 2012 14:34:35 +0200 |
parents | |
children | e4a415773b0a |
comparison
equal
deleted
inserted
replaced
4240:4774902b0389 | 4241:49cb65d5932d |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import de.intevation.artifactdatabase.state.Facet; | |
4 import de.intevation.artifacts.Artifact; | |
5 import de.intevation.artifacts.CallContext; | |
6 | |
7 | |
8 /** | |
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
10 */ | |
11 public class HistoricalDischargeWQFacet extends DataFacet { | |
12 | |
13 private double value; | |
14 | |
15 public HistoricalDischargeWQFacet() { | |
16 } | |
17 | |
18 public HistoricalDischargeWQFacet(String name, String desc, double value) { | |
19 super(name, desc); | |
20 this.value = value; | |
21 } | |
22 | |
23 @Override | |
24 public Facet deepCopy() { | |
25 HistoricalDischargeWQFacet copy = new HistoricalDischargeWQFacet(); | |
26 copy.set(this); | |
27 copy.value = value; | |
28 return copy; | |
29 } | |
30 | |
31 @Override | |
32 public Object getData(Artifact artifact, CallContext context) { | |
33 return value; | |
34 } | |
35 } | |
36 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |