Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixATExport.java @ 5055:3b974a24a8e1
Fixed AT-Export in 'ausgel. WSPL'.
* Added facet.
* Fixed download link.
* Use toplevel fixings result to get function parameters.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 20 Feb 2013 15:27:29 +0100 |
parents | 53be73133104 |
children | 3d01658d9c9c |
comparison
equal
deleted
inserted
replaced
5051:2847371be7fe | 5055:3b974a24a8e1 |
---|---|
13 | 13 |
14 import de.intevation.flys.artifacts.model.CalculationResult; | 14 import de.intevation.flys.artifacts.model.CalculationResult; |
15 import de.intevation.flys.artifacts.model.Parameters; | 15 import de.intevation.flys.artifacts.model.Parameters; |
16 | 16 |
17 import de.intevation.flys.artifacts.model.fixings.FixAnalysisResult; | 17 import de.intevation.flys.artifacts.model.fixings.FixAnalysisResult; |
18 import de.intevation.flys.artifacts.model.fixings.FixResult; | |
18 | 19 |
19 import de.intevation.flys.exports.AbstractExporter; | 20 import de.intevation.flys.exports.AbstractExporter; |
20 | 21 |
21 import java.io.IOException; | 22 import java.io.IOException; |
22 import java.io.OutputStream; | 23 import java.io.OutputStream; |
44 logger.debug("AT Export doOut()."); | 45 logger.debug("AT Export doOut()."); |
45 Object data = bundle.getData(context); | 46 Object data = bundle.getData(context); |
46 if (data instanceof CalculationResult) { | 47 if (data instanceof CalculationResult) { |
47 CalculationResult cr = (CalculationResult)data; | 48 CalculationResult cr = (CalculationResult)data; |
48 Object resData = cr.getData(); | 49 Object resData = cr.getData(); |
49 if (resData instanceof FixAnalysisResult) { | 50 if (resData instanceof FixResult) { |
50 this.parameters = ((FixAnalysisResult)resData).getParameters(); | 51 this.parameters = ((FixResult)resData).getParameters(); |
51 } | 52 } |
52 } | 53 } |
53 else { | 54 else { |
54 logger.debug("No CalculationResult found for AT export."); | 55 logger.debug("No CalculationResult found for AT export."); |
55 return; | 56 return; |