Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportGauge.java @ 185:a60edcfe5f53
Added new helper models for import.
flys-backend/trunk@1503 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 17 Mar 2011 16:12:39 +0000 |
parents | 4ab2c3bd474c |
children | bc3747a371cc |
comparison
equal
deleted
inserted
replaced
184:4ab2c3bd474c | 185:a60edcfe5f53 |
---|---|
2 | 2 |
3 import java.io.File; | 3 import java.io.File; |
4 | 4 |
5 public class ImportGauge | 5 public class ImportGauge |
6 { | 6 { |
7 protected double from; | 7 protected ImportRange range; |
8 protected double to; | |
9 | 8 |
10 protected File staFile; | 9 protected File staFile; |
11 protected File atFile; | 10 protected File atFile; |
12 | 11 |
13 public ImportGauge() { | 12 public ImportGauge() { |
14 } | 13 } |
15 | 14 |
16 public ImportGauge(double from, double to, File staFile, File atFile) { | 15 public ImportGauge(ImportRange range, File staFile, File atFile) { |
17 this.from = from; | 16 this.range = range; |
18 this.to = to; | |
19 this.staFile = staFile; | 17 this.staFile = staFile; |
20 this.atFile = atFile; | 18 this.atFile = atFile; |
21 } | 19 } |
22 | 20 |
23 public void setFrom(double from) { | 21 public void setRange(ImportRange range) { |
24 this.from = from; | 22 this.range = range; |
25 } | |
26 | |
27 public double getFrom() { | |
28 return from; | |
29 } | |
30 | |
31 public void setTo(double to) { | |
32 this.to = to; | |
33 } | |
34 | |
35 public double getTo() { | |
36 return to; | |
37 } | 23 } |
38 | 24 |
39 public void setStaFile(File staFile) { | 25 public void setStaFile(File staFile) { |
40 this.staFile = staFile; | 26 this.staFile = staFile; |
41 } | 27 } |