Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FixRealizingAccess.java @ 5772:c0d0b9fd1aa8
issue1276: Re-enable fixation autorecommend at discharge_curves.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 19 Apr 2013 09:22:44 +0200 |
parents | a929d9a9fa1e |
children |
line wrap: on
line source
package de.intevation.flys.artifacts.access; import de.intevation.artifacts.CallContext; import de.intevation.flys.artifacts.FLYSArtifact; import de.intevation.flys.artifacts.model.Segment; import java.util.List; import org.apache.log4j.Logger; /** Fix-Realizing (Volmer/Ausgelagerte Wasserspiegellage) access. */ public class FixRealizingAccess extends FixAccess { private static Logger log = Logger.getLogger(FixRealizingAccess.class); protected Boolean isQ; protected List<Segment> segments; public FixRealizingAccess(FLYSArtifact artifact, CallContext context) { super(artifact, context); } public Boolean isQ() { if (isQ == null) { isQ = getBoolean("wq_isq"); } if (log.isDebugEnabled()) { log.debug("isQ: " + isQ); } return isQ; } public List<Segment> getSegments() { if (segments == null) { String segmentsS = getString("wq_values"); if (segmentsS != null) { segments = Segment.parseSegments(segmentsS); } } if (log.isDebugEnabled()) { log.debug("segments: " + segments); } return segments; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :