comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstResultFacet.java @ 9432:d194c5b24bf8

Added bundu bzws w calculation and longitudinal sections of wspl and depth
author mschaefer
date Mon, 20 Aug 2018 09:46:02 +0200
parents
children
comparison
equal deleted inserted replaced
9431:eeea16ea0980 9432:d194c5b24bf8
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
2 * Software engineering by
3 * Björnsen Beratende Ingenieure GmbH
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
5 *
6 * This file is Free Software under the GNU AGPL (>=v3)
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
8 * documentation coming with Dive4Elements River for details.
9 */
10
11 package org.dive4elements.river.artifacts.bundu.bezugswst;
12
13 import org.apache.log4j.Logger;
14 import org.dive4elements.artifactdatabase.state.Facet;
15 import org.dive4elements.river.artifacts.common.ResultFacet;
16 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType;
17
18 /**
19 * Facet of a bundu bezugswst longitudinal section data series
20 */
21 public class BezugswstResultFacet extends ResultFacet {
22
23 private static final long serialVersionUID = 1L;
24
25 private static Logger log = Logger.getLogger(BezugswstResultFacet.class);
26
27 public BezugswstResultFacet() {
28 // required for clone operation deepCopy()
29 }
30
31 public BezugswstResultFacet(final int facetIndex, final int resultIndex, final String name, final String description, final String yAxisLabelKey,
32 final String stateId, final String hash) {
33 super(facetIndex, resultIndex, name, description, yAxisLabelKey, ComputeType.ADVANCE, stateId, hash);
34 }
35
36 /** Copy deeply. */
37 @Override
38 public Facet deepCopy() {
39 // FIXME: why not simply use the full constructor instead?
40 final BezugswstResultFacet copy = new BezugswstResultFacet();
41 // FIXME: why does DataFacet does not override set? Bad access to variables of parent!
42 copy.set(this);
43 copy.type = this.type;
44 copy.hash = this.hash;
45 copy.stateId = this.stateId;
46 return copy;
47 }
48 }

http://dive4elements.wald.intevation.org