Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixRankResultFacet.java @ 9368:6f7e92c16050
Fixed U-Info salix mw calculation, added filtered themes, own y axis, warning report
author | mschaefer |
---|---|
date | Thu, 02 Aug 2018 16:11:12 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9367:8aa1605e58f1 | 9368:6f7e92c16050 |
---|---|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9 package org.dive4elements.river.artifacts.uinfo.salix; | |
10 | |
11 import org.apache.log4j.Logger; | |
12 import org.dive4elements.artifactdatabase.state.Facet; | |
13 import org.dive4elements.river.artifacts.common.ResultFacet; | |
14 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | |
15 | |
16 /** | |
17 * Facet of the U-Info salix rank areas. | |
18 */ | |
19 public class SalixRankResultFacet extends ResultFacet { | |
20 | |
21 private static final long serialVersionUID = 1L; | |
22 | |
23 private static Logger log = Logger.getLogger(SalixRankResultFacet.class); | |
24 | |
25 public SalixRankResultFacet() { | |
26 // required for clone operation deepCopy() | |
27 } | |
28 | |
29 public SalixRankResultFacet(final int facetIndex, final int resultIndex, final String name, final String description, final String yAxisLabelKey, | |
30 final String stateId, final String hash) { | |
31 super(facetIndex, resultIndex, name, description, yAxisLabelKey, ComputeType.ADVANCE, stateId, hash); | |
32 } | |
33 | |
34 /** Copy deeply. */ | |
35 @Override | |
36 public Facet deepCopy() { | |
37 // FIXME: why not simply use the full constructor instead? | |
38 final SalixRankResultFacet copy = new SalixRankResultFacet(); | |
39 // FIXME: why does DataFacet does not override set? Bad access to variables of parent! | |
40 copy.set(this); | |
41 copy.type = this.type; | |
42 copy.hash = this.hash; | |
43 copy.stateId = this.stateId; | |
44 return copy; | |
45 } | |
46 } |