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: ingo@3230: private int[] mainChannels; ingo@3230: private int[] totalChannels; sascha@3232: ingo@3230: private Double lowerKM; ingo@3230: private Double upperKM; sascha@3232: sascha@3232: ingo@3230: public FlowVelocityAccess(FLYSArtifact artifact) { ingo@3230: super(artifact); ingo@3230: } sascha@3232: sascha@3232: ingo@3230: public int[] getMainChannels() { ingo@3230: if (mainChannels == null) { ingo@3230: mainChannels = getIntArray("main.channel"); ingo@3230: } sascha@3232: ingo@3230: return mainChannels; ingo@3230: } ingo@3230: ingo@3230: ingo@3230: public int[] getTotalChannels() { ingo@3230: if (totalChannels == null) { ingo@3230: totalChannels = getIntArray("total.channel"); ingo@3230: } sascha@3232: ingo@3230: return totalChannels; ingo@3230: } sascha@3232: sascha@3232: ingo@3230: public Double getLowerKM() { ingo@3230: if (lowerKM == null) { ingo@3230: lowerKM = getDouble("ld_from"); ingo@3230: } sascha@3232: ingo@3230: return lowerKM; ingo@3230: } sascha@3232: sascha@3232: ingo@3230: public Double getUpperKM() { ingo@3230: if (upperKM == null) { ingo@3230: upperKM = getDouble("ld_to"); ingo@3230: } sascha@3232: ingo@3230: return upperKM; ingo@3230: } ingo@3230: }