Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java @ 4667:e6a282844a33
Refactored the themes config files (currently only default style).
* split up the big config file into one file for each chart type.
* cleaned up the virtual themes.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 12 Dec 2012 10:42:38 +0100 |
parents | 1fea4243721c |
children | 756aba0d2a7a |
line wrap: on
line source
package de.intevation.flys.artifacts.access; import java.util.Arrays; import org.apache.log4j.Logger; import de.intevation.artifacts.CallContext; import de.intevation.flys.artifacts.FLYSArtifact; import de.intevation.flys.utils.FLYSUtils; import de.intevation.flys.utils.StringUtil; /** For the moment, light-weight wrapper around FLYSUtils. */ // TODO employ 'Caching' like other Accesses, remove usage of FLYSUtils. public class RangeAccess extends RiverAccess { private static Logger logger = Logger.getLogger(RangeAccess.class); private CallContext context; public RangeAccess(FLYSArtifact artifact, CallContext context) { super(artifact); this.context = context; } /** * Get min and max kilometer, independent of parametization * (ld_from/to vs ld_locations). */ public double[] getKmRange() { return FLYSUtils.getKmRange(this.getArtifact()); } public double[] getKmFromTo() { return FLYSUtils.getKmFromTo(this.getArtifact()); } /** * Return sorted array of locations at which stuff was calculated * (from ld_locations data), null if not parameterized this way. */ public double[] getLocations() { return FLYSUtils.getLocations(this.getArtifact()); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :