ingo@3230: package de.intevation.flys.artifacts.access; ingo@3230: ingo@3230: import de.intevation.flys.artifacts.FLYSArtifact; ingo@3230: ingo@3230: ingo@3230: public class FlowVelocityAccess extends Access { sascha@3232: sascha@3258: private int[] mainChannels; sascha@3258: private int[] totalChannels; sascha@3232: sascha@3258: private Double lowerKM; sascha@3258: private Double upperKM; sascha@3232: sascha@3232: sascha@3258: public FlowVelocityAccess(FLYSArtifact artifact) { sascha@3258: super(artifact); sascha@3258: } sascha@3232: sascha@3232: sascha@3258: public int[] getMainChannels() { sascha@3258: if (mainChannels == null) { sascha@3258: 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) { sascha@3258: totalChannels = getIntArray("total.channel"); sascha@3258: } sascha@3232: sascha@3258: return totalChannels; ingo@3230: } sascha@3232: sascha@3232: ingo@3230: public Double getLowerKM() { sascha@3258: if (lowerKM == null) { sascha@3258: lowerKM = getDouble("ld_from"); sascha@3258: } sascha@3232: sascha@3258: return lowerKM; ingo@3230: } sascha@3232: sascha@3232: ingo@3230: public Double getUpperKM() { sascha@3258: if (upperKM == null) { sascha@3258: upperKM = getDouble("ld_to"); sascha@3258: } sascha@3232: sascha@3258: return upperKM; ingo@3230: } ingo@3230: } sascha@3259: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :