Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalDischargeWQFacet.java @ 4260:e4a415773b0a
Added the 'index' parameter to HistoricalDischargeWQFacet to avoid loosing facets during the merge process in the FLYSArtifactCollection.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 26 Oct 2012 08:51:08 +0200 |
parents | 49cb65d5932d |
children |
comparison
equal
deleted
inserted
replaced
4259:5cc9453456a7 | 4260:e4a415773b0a |
---|---|
1 package de.intevation.flys.artifacts.model; | 1 package de.intevation.flys.artifacts.model; |
2 | 2 |
3 import de.intevation.artifactdatabase.state.Facet; | 3 import de.intevation.artifactdatabase.state.Facet; |
4 import de.intevation.artifacts.Artifact; | 4 import de.intevation.artifacts.Artifact; |
5 import de.intevation.artifacts.CallContext; | 5 import de.intevation.artifacts.CallContext; |
6 import de.intevation.flys.artifacts.states.DefaultState.ComputeType; | |
6 | 7 |
7 | 8 |
8 /** | 9 /** |
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
10 */ | 11 */ |
13 private double value; | 14 private double value; |
14 | 15 |
15 public HistoricalDischargeWQFacet() { | 16 public HistoricalDischargeWQFacet() { |
16 } | 17 } |
17 | 18 |
18 public HistoricalDischargeWQFacet(String name, String desc, double value) { | 19 public HistoricalDischargeWQFacet(int index, String name, |
19 super(name, desc); | 20 String description, ComputeType type, String hash, String stateId, |
21 double value) { | |
22 | |
23 super(index, name, description, type, hash, stateId); | |
20 this.value = value; | 24 this.value = value; |
21 } | 25 } |
22 | 26 |
23 @Override | 27 @Override |
24 public Facet deepCopy() { | 28 public Facet deepCopy() { |