Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WSPLGENJob.java @ 1650:aaf8d32f85bd
Improved Facet creation for floodmaps - WSPLGEN and barriers Facets are only created if the calculation was successful.
flys-artifacts/trunk@2837 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Sep 2011 12:40:42 +0000 |
parents | 64b465699a24 |
children | a78dafdd8590 |
comparison
equal
deleted
inserted
replaced
1649:74142aa5d938 | 1650:aaf8d32f85bd |
---|---|
9 import java.util.List; | 9 import java.util.List; |
10 | 10 |
11 import de.intevation.artifacts.CallContext; | 11 import de.intevation.artifacts.CallContext; |
12 | 12 |
13 import de.intevation.flys.artifacts.FLYSArtifact; | 13 import de.intevation.flys.artifacts.FLYSArtifact; |
14 import de.intevation.flys.wsplgen.FacetCreator; | |
14 | 15 |
15 | 16 |
16 public class WSPLGENJob { | 17 public class WSPLGENJob { |
17 | 18 |
18 public static final String GEL_SPERRE = "SPERRE"; | 19 public static final String GEL_SPERRE = "SPERRE"; |
22 protected FLYSArtifact artifact; | 23 protected FLYSArtifact artifact; |
23 | 24 |
24 protected CallContext callContext; | 25 protected CallContext callContext; |
25 | 26 |
26 protected WSPLGENCalculation calculation; | 27 protected WSPLGENCalculation calculation; |
28 | |
29 protected FacetCreator facetCreator; | |
27 | 30 |
28 protected File workingDir; | 31 protected File workingDir; |
29 | 32 |
30 protected String dgm; | 33 protected String dgm; |
31 protected String pro; | 34 protected String pro; |
50 | 53 |
51 | 54 |
52 public WSPLGENJob( | 55 public WSPLGENJob( |
53 FLYSArtifact flys, | 56 FLYSArtifact flys, |
54 File workingDir, | 57 File workingDir, |
58 FacetCreator facetCreator, | |
55 CallContext context, | 59 CallContext context, |
56 WSPLGENCalculation calculation) | 60 WSPLGENCalculation calculation) |
57 { | 61 { |
58 this.artifact = flys; | 62 this.artifact = flys; |
59 this.workingDir = workingDir; | 63 this.workingDir = workingDir; |
60 this.callContext = context; | 64 this.facetCreator = facetCreator; |
61 this.calculation = calculation; | 65 this.callContext = context; |
66 this.calculation = calculation; | |
62 | 67 |
63 out = -1; | 68 out = -1; |
64 start = Double.NaN; | 69 start = Double.NaN; |
65 end = Double.NaN; | 70 end = Double.NaN; |
66 from = Double.NaN; | 71 from = Double.NaN; |
76 } | 81 } |
77 | 82 |
78 | 83 |
79 public FLYSArtifact getArtifact() { | 84 public FLYSArtifact getArtifact() { |
80 return artifact; | 85 return artifact; |
86 } | |
87 | |
88 | |
89 public FacetCreator getFacetCreator() { | |
90 return facetCreator; | |
81 } | 91 } |
82 | 92 |
83 | 93 |
84 public WSPLGENCalculation getCalculation() { | 94 public WSPLGENCalculation getCalculation() { |
85 return calculation; | 95 return calculation; |