Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/StaticSQRelation.java @ 5500:700ac898ab0b
Added Factory and model for static sq relations.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 28 Mar 2013 15:15:33 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5499:43bf4976dd24 | 5500:700ac898ab0b |
---|---|
1 package de.intevation.flys.artifacts.model.sq; | |
2 | |
3 import java.io.Serializable; | |
4 import java.util.Date; | |
5 | |
6 | |
7 public class StaticSQRelation implements Serializable{ | |
8 | |
9 private Date startTime; | |
10 private Date stopTime; | |
11 private String type; | |
12 private Parameter parameter; | |
13 private double a; | |
14 private double b; | |
15 private double qmax; | |
16 | |
17 public static enum Parameter { | |
18 A, B, C, D, E, F | |
19 } | |
20 | |
21 | |
22 public StaticSQRelation() { | |
23 } | |
24 | |
25 public StaticSQRelation( | |
26 Date startTime, | |
27 Date stopTime, | |
28 String type, | |
29 Parameter parameter, | |
30 double a, | |
31 double b | |
32 ) { | |
33 this.startTime = startTime; | |
34 this.stopTime = stopTime; | |
35 this.type = type; | |
36 this.parameter = parameter; | |
37 this.a = a; | |
38 this.b = b; | |
39 } | |
40 | |
41 public Date getStartTime() { | |
42 return startTime; | |
43 } | |
44 | |
45 public void setStartTime(Date startTime) { | |
46 this.startTime = startTime; | |
47 } | |
48 | |
49 public Date getStopTime() { | |
50 return stopTime; | |
51 } | |
52 | |
53 public void setStopTime(Date stopTime) { | |
54 this.stopTime = stopTime; | |
55 } | |
56 | |
57 public String getType() { | |
58 return type; | |
59 } | |
60 | |
61 public void setType(String type) { | |
62 this.type = type; | |
63 } | |
64 | |
65 public Parameter getParameter() { | |
66 return parameter; | |
67 } | |
68 | |
69 public void setParameter(Parameter parameter) { | |
70 this.parameter = parameter; | |
71 } | |
72 | |
73 public void setParameter(String parameter) { | |
74 if (parameter == null) { | |
75 return; | |
76 } | |
77 this.parameter = Parameter.valueOf(parameter); | |
78 } | |
79 | |
80 public double getA() { | |
81 return a; | |
82 } | |
83 | |
84 public void setA(double a) { | |
85 this.a = a; | |
86 } | |
87 | |
88 public double getB() { | |
89 return b; | |
90 } | |
91 | |
92 public void setB(double b) { | |
93 this.b = b; | |
94 } | |
95 | |
96 public double getQmax() { | |
97 return qmax; | |
98 } | |
99 | |
100 public void setQmax(double qmax) { | |
101 this.qmax = qmax; | |
102 } | |
103 } |