mschaefer@9368: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde mschaefer@9368: * Software engineering by Intevation GmbH mschaefer@9368: * mschaefer@9368: * This file is Free Software under the GNU AGPL (>=v3) mschaefer@9368: * and comes with ABSOLUTELY NO WARRANTY! Check out the mschaefer@9368: * documentation coming with Dive4Elements River for details. mschaefer@9368: */ mschaefer@9368: mschaefer@9368: package org.dive4elements.river.artifacts.uinfo.salix; mschaefer@9368: mschaefer@9368: import org.apache.log4j.Logger; mschaefer@9368: import org.dive4elements.artifactdatabase.state.Facet; mschaefer@9368: import org.dive4elements.river.artifacts.common.ResultFacet; mschaefer@9368: import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; mschaefer@9368: mschaefer@9368: /** mschaefer@9368: * Facet of the U-Info salix rank areas. mschaefer@9368: */ mschaefer@9368: public class SalixRankResultFacet extends ResultFacet { mschaefer@9368: mschaefer@9368: private static final long serialVersionUID = 1L; mschaefer@9368: mschaefer@9368: private static Logger log = Logger.getLogger(SalixRankResultFacet.class); mschaefer@9368: mschaefer@9368: public SalixRankResultFacet() { mschaefer@9368: // required for clone operation deepCopy() mschaefer@9368: } mschaefer@9368: mschaefer@9368: public SalixRankResultFacet(final int facetIndex, final int resultIndex, final String name, final String description, final String yAxisLabelKey, mschaefer@9368: final String stateId, final String hash) { mschaefer@9368: super(facetIndex, resultIndex, name, description, yAxisLabelKey, ComputeType.ADVANCE, stateId, hash); mschaefer@9368: } mschaefer@9368: mschaefer@9368: /** Copy deeply. */ mschaefer@9368: @Override mschaefer@9368: public Facet deepCopy() { mschaefer@9368: // FIXME: why not simply use the full constructor instead? mschaefer@9368: final SalixRankResultFacet copy = new SalixRankResultFacet(); mschaefer@9368: // FIXME: why does DataFacet does not override set? Bad access to variables of parent! mschaefer@9368: copy.set(this); mschaefer@9368: copy.type = this.type; mschaefer@9368: copy.hash = this.hash; mschaefer@9368: copy.stateId = this.stateId; mschaefer@9368: return copy; mschaefer@9368: } mschaefer@9368: }