Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveExporter.java @ 7077:0a337f0005c2 generator-refactoring
Extended init() of OutGenerator to take name of the out to serve.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 20 Sep 2013 16:34:09 +0200 |
parents | 294742a49c1c |
children | 41567bf1e131 |
comparison
equal
deleted
inserted
replaced
7074:a2abd87c0d3b | 7077:0a337f0005c2 |
---|---|
80 protected String gaugeName; | 80 protected String gaugeName; |
81 protected double gaugeDatum; | 81 protected double gaugeDatum; |
82 protected boolean isCalculated; | 82 protected boolean isCalculated; |
83 protected Date validSince; | 83 protected Date validSince; |
84 | 84 |
85 public void init(Document request, OutputStream out, CallContext context) { | 85 public ComputedDischargeCurveExporter() { |
86 logger.debug("ComputedDischargeCurveExporter.init"); | 86 data = new ArrayList<WQKms>(); |
87 | 87 } |
88 super.init(request, out, context); | |
89 | |
90 this.data = new ArrayList<WQKms>(); | |
91 } | |
92 | |
93 | 88 |
94 @Override | 89 @Override |
95 protected void addData(Object d) { | 90 protected void addData(Object d) { |
96 if (d instanceof CalculationResult) { | 91 if (d instanceof CalculationResult) { |
97 d = ((CalculationResult)d).getData(); | 92 d = ((CalculationResult)d).getData(); |