Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/HistoricalDischargeWQFacet.java @ 5831:bd047b71ab37
Repaired internal references
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:06:39 +0200 |
parents | flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalDischargeWQFacet.java@e4a415773b0a |
children |
comparison
equal
deleted
inserted
replaced
5830:160f53ee0870 | 5831:bd047b71ab37 |
---|---|
1 package org.dive4elements.river.artifacts.model; | |
2 | |
3 import org.dive4elements.artifactdatabase.state.Facet; | |
4 import org.dive4elements.artifacts.Artifact; | |
5 import org.dive4elements.artifacts.CallContext; | |
6 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | |
7 | |
8 | |
9 /** | |
10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
11 */ | |
12 public class HistoricalDischargeWQFacet extends DataFacet { | |
13 | |
14 private double value; | |
15 | |
16 public HistoricalDischargeWQFacet() { | |
17 } | |
18 | |
19 public HistoricalDischargeWQFacet(int index, String name, | |
20 String description, ComputeType type, String hash, String stateId, | |
21 double value) { | |
22 | |
23 super(index, name, description, type, hash, stateId); | |
24 this.value = value; | |
25 } | |
26 | |
27 @Override | |
28 public Facet deepCopy() { | |
29 HistoricalDischargeWQFacet copy = new HistoricalDischargeWQFacet(); | |
30 copy.set(this); | |
31 copy.value = value; | |
32 return copy; | |
33 } | |
34 | |
35 @Override | |
36 public Object getData(Artifact artifact, CallContext context) { | |
37 return value; | |
38 } | |
39 } | |
40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |