teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5863: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5863: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.artifacts.access; ingo@3230: teichmann@5831: import org.dive4elements.artifacts.CallContext; felix@4826: teichmann@5867: import org.dive4elements.river.artifacts.D4EArtifact; ingo@3230: ingo@3230: felix@3931: /** Access to data that deals with flow velocity stuff. */ felix@4826: public class FlowVelocityAccess felix@4826: extends RangeAccess felix@4826: { sascha@3232: sascha@3258: private int[] mainChannels; sascha@3258: private int[] totalChannels; sascha@3232: teichmann@5867: public FlowVelocityAccess(D4EArtifact artifact, CallContext context) { felix@4826: super(artifact, context); sascha@3258: } sascha@3232: sascha@3232: sascha@3258: public int[] getMainChannels() { sascha@3258: if (mainChannels == null) { ingo@3759: mainChannels = getIntArray("main_channel"); sascha@3258: } sascha@3232: sascha@3258: return mainChannels; ingo@3230: } ingo@3230: ingo@3230: ingo@3230: public int[] getTotalChannels() { sascha@3258: if (totalChannels == null) { ingo@3759: totalChannels = getIntArray("total_channel"); sascha@3258: } sascha@3232: sascha@3258: return totalChannels; ingo@3230: } sascha@3232: sascha@3232: ingo@3230: public Double getLowerKM() { felix@4826: // TODO update callers to getFrom felix@4826: return getFrom(); ingo@3230: } sascha@3232: sascha@3232: ingo@3230: public Double getUpperKM() { felix@4826: // TODO update callers to getTo felix@4826: return getTo(); ingo@3230: } ingo@3230: } sascha@3259: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :