comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/FixFilter.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-client/src/main/java/org/dive4elements/river/client/shared/model/FixFilter.java@821a02bbfb4e
children 172338b1407f
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.client.shared.model;
2
3 import java.io.Serializable;
4
5 /** Probably something like *Access, but from client side. */
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 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org