Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WSPLGENJob.java @ 1127:6b9877a9f6c1
Added infrastructure to start WSPLGEN calculations - the FloodMapState already start such calculations.
flys-artifacts/trunk@2639 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 02 Sep 2011 13:12:05 +0000 |
parents | 563e015f0f22 |
children | 727c53fd0dc7 |
comparison
equal
deleted
inserted
replaced
1126:da4d8631fc46 | 1127:6b9877a9f6c1 |
---|---|
6 import java.io.OutputStreamWriter; | 6 import java.io.OutputStreamWriter; |
7 import java.io.PrintWriter; | 7 import java.io.PrintWriter; |
8 import java.util.ArrayList; | 8 import java.util.ArrayList; |
9 import java.util.List; | 9 import java.util.List; |
10 | 10 |
11 import de.intevation.artifacts.CallContext; | |
12 | |
13 import de.intevation.flys.artifacts.FLYSArtifact; | |
14 | |
11 | 15 |
12 public class WSPLGENJob { | 16 public class WSPLGENJob { |
13 | 17 |
14 public static final String GEL_SPERRE = "SPERRE"; | 18 public static final String GEL_SPERRE = "SPERRE"; |
15 public static final String GEL_NOSPERRE = "NOSPERRE"; | 19 public static final String GEL_NOSPERRE = "NOSPERRE"; |
16 | 20 |
21 | |
22 protected FLYSArtifact artifact; | |
23 | |
24 protected CallContext callContext; | |
25 | |
26 protected File workingDir; | |
17 | 27 |
18 protected String dgm; | 28 protected String dgm; |
19 protected String pro; | 29 protected String pro; |
20 protected String wsp; | 30 protected String wsp; |
21 protected String wspTag; | 31 protected String wspTag; |
35 protected double diff; | 45 protected double diff; |
36 protected double dist; | 46 protected double dist; |
37 | 47 |
38 | 48 |
39 | 49 |
40 public WSPLGENJob() { | 50 public WSPLGENJob(FLYSArtifact flys, File workingDir, CallContext context) { |
51 this.artifact = flys; | |
52 this.workingDir = workingDir; | |
53 this.callContext = callContext; | |
54 | |
41 out = -1; | 55 out = -1; |
42 start = Double.NaN; | 56 start = Double.NaN; |
43 end = Double.NaN; | 57 end = Double.NaN; |
44 from = Double.NaN; | 58 from = Double.NaN; |
45 to = Double.NaN; | 59 to = Double.NaN; |
46 diff = Double.NaN; | 60 diff = Double.NaN; |
47 dist = Double.NaN; | 61 dist = Double.NaN; |
48 lin = new ArrayList<String>(2); | 62 lin = new ArrayList<String>(2); |
63 } | |
64 | |
65 | |
66 public File getWorkingDir() { | |
67 return workingDir; | |
68 } | |
69 | |
70 | |
71 public CallContext getCallContext() { | |
72 return callContext; | |
49 } | 73 } |
50 | 74 |
51 | 75 |
52 public void setWsp(String wsp) { | 76 public void setWsp(String wsp) { |
53 this.wsp = wsp; | 77 this.wsp = wsp; |