Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/FixFilter.java @ 2962:f14d4c668ec5
Bugfix: #698 Fix-Analysis is working in Tomcat again.
flys-client/trunk@4949 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 12 Jul 2012 12:26:14 +0000 |
parents | |
children | 7d796197e20a |
comparison
equal
deleted
inserted
replaced
2961:579e33a24a4c | 2962:f14d4c668ec5 |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 | |
6 public class FixFilter implements Serializable{ | |
7 | |
8 protected String river; | |
9 protected double fromKm; | |
10 protected double toKm; | |
11 protected double currentKm; | |
12 protected int fromClass; | |
13 protected int toClass; | |
14 protected long fromDate; | |
15 protected long toDate; | |
16 protected boolean hasDate; | |
17 protected int[] events; | |
18 | |
19 public FixFilter() { | |
20 this.river = ""; | |
21 this.fromKm = -Double.MAX_VALUE; | |
22 this.toKm = -1; | |
23 this.currentKm = -1; | |
24 this.fromClass = -1; | |
25 this.toClass = -1; | |
26 this.fromDate = -1; | |
27 this.toDate = -1; | |
28 this.hasDate = false; | |
29 this.events = new int[0]; | |
30 } | |
31 | |
32 public void setRiver(String river) { | |
33 this.river = river; | |
34 } | |
35 | |
36 public void setFromKm(double from) { | |
37 this.fromKm = from; | |
38 } | |
39 | |
40 public void setToKm(double to) { | |
41 this.toKm = to; | |
42 } | |
43 | |
44 public void setCurrentKm(double km) { | |
45 this.currentKm = km; | |
46 } | |
47 | |
48 public void setFromClass(int from) { | |
49 this.fromClass = from; | |
50 } | |
51 | |
52 public void setToClass(int to) { | |
53 this.toClass = to; | |
54 } | |
55 | |
56 public void setFromDate(long from) { | |
57 this.hasDate = true; | |
58 this.fromDate = from; | |
59 } | |
60 | |
61 public void setToDate(long to) { | |
62 this.hasDate = true; | |
63 this.toDate = to; | |
64 } | |
65 | |
66 public void setEvents(int[] ev) { | |
67 this.events = ev; | |
68 } | |
69 | |
70 public String getRiver() { | |
71 return this.river; | |
72 } | |
73 | |
74 public double getFromKm() { | |
75 return this.fromKm; | |
76 } | |
77 | |
78 public double getToKm() { | |
79 return this.toKm; | |
80 } | |
81 | |
82 public double getCurrentKm() { | |
83 return this.currentKm; | |
84 } | |
85 | |
86 public int getFromClass() { | |
87 return this.fromClass; | |
88 } | |
89 | |
90 public int getToClass() { | |
91 return this.toClass; | |
92 } | |
93 | |
94 public long getFromDate() { | |
95 return this.fromDate; | |
96 } | |
97 | |
98 public long getToDate() { | |
99 return this.toDate; | |
100 } | |
101 | |
102 public int[] getEvents() { | |
103 return this.events; | |
104 } | |
105 } | |
106 |