commit | author | age
|
66d68b
|
1 |
/* |
U |
2 |
Zeitrechnung - a class library to determine calendar events |
|
3 |
Copyright (c) 1984-2023 Ulrich Hilger, http://uhilger.de |
|
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero General Public License as published by |
|
7 |
the Free Software Foundation, either version 3 of the License, or |
|
8 |
(at your option) any later version. |
|
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
GNU Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
package de.uhilger.zeitrechnung; |
|
19 |
|
|
20 |
/** |
|
21 |
* Definition von Ereignissen in Form von Ganzzahl-Werten. |
|
22 |
* |
|
23 |
* Die Belegung der Parameter p1, p2, p3, p4 ist in der Dokumentation zur |
|
24 |
* jeweiligen Ereignisklasse beschrieben, durch die auch die Uebertragung |
|
25 |
* aus dieser Klasse Definition zu einer Auspraegung im Sinne der |
|
26 |
* Klassenbibliothek Zeitrechnung geschieht. |
|
27 |
* |
|
28 |
* @author Ulrich Hilger |
|
29 |
*/ |
|
30 |
public class Definition { |
|
31 |
|
|
32 |
public static final int SONNTAG = 0; |
|
33 |
public static final int MONTAG = 1; |
|
34 |
public static final int DIENSTAG = 2; |
|
35 |
public static final int MITTWOCH = 3; |
|
36 |
public static final int DONNERSTAG = 4; |
|
37 |
public static final int FREITAG = 5; |
|
38 |
public static final int SAMSTAG = 6; |
|
39 |
|
|
40 |
public static final int JANUAR = 1; |
|
41 |
public static final int FEBRUAR = 2; |
|
42 |
public static final int MAERZ = 3; |
|
43 |
public static final int APRIL = 4; |
|
44 |
public static final int MAI = 5; |
|
45 |
public static final int JUNI = 6; |
|
46 |
public static final int JULI = 7; |
|
47 |
public static final int AUGUST = 8; |
|
48 |
public static final int SEPTEMBER = 9; |
|
49 |
public static final int OKTOBER = 10; |
|
50 |
public static final int NOVEMBER = 11; |
|
51 |
public static final int DEZEMBER = 12; |
|
52 |
|
|
53 |
public static final int LETZTER = -1; |
|
54 |
|
|
55 |
public static final double FRUEHLING = (double) 0; |
|
56 |
public static final double SOMMER = (double) 90; |
|
57 |
public static final double HERBST = (double) 180; |
|
58 |
public static final double WINTER = (double) 270; |
|
59 |
|
|
60 |
private String name; |
|
61 |
private int typ; |
2f6b9a
|
62 |
private long p1 = Long.MAX_VALUE; |
U |
63 |
private long p2 = Long.MAX_VALUE; |
|
64 |
private long p3 = Long.MAX_VALUE; |
|
65 |
private long p4 = Long.MAX_VALUE; |
|
66 |
private long p5 = Long.MAX_VALUE; |
66d68b
|
67 |
|
U |
68 |
public String getName() { |
|
69 |
return name; |
|
70 |
} |
|
71 |
|
|
72 |
public void setName(String name) { |
|
73 |
this.name = name; |
|
74 |
} |
|
75 |
|
|
76 |
public int getTyp() { |
|
77 |
return typ; |
|
78 |
} |
|
79 |
|
|
80 |
public void setTyp(int typ) { |
|
81 |
this.typ = typ; |
|
82 |
} |
|
83 |
|
|
84 |
public long getp1() { |
|
85 |
return p1; |
|
86 |
} |
|
87 |
|
|
88 |
public void setp1(long p1) { |
|
89 |
this.p1 = p1; |
|
90 |
} |
|
91 |
|
|
92 |
public long getp2() { |
|
93 |
return p2; |
|
94 |
} |
|
95 |
|
|
96 |
public void setp2(long p2) { |
|
97 |
this.p2 = p2; |
|
98 |
} |
|
99 |
|
|
100 |
public long getp3() { |
|
101 |
return p3; |
|
102 |
} |
|
103 |
|
|
104 |
public void setp3(long p3) { |
|
105 |
this.p3 = p3; |
|
106 |
} |
|
107 |
|
|
108 |
public long getp4() { |
|
109 |
return p4; |
|
110 |
} |
|
111 |
|
|
112 |
public void setp4(long p4) { |
|
113 |
this.p4 = p4; |
|
114 |
} |
8cf849
|
115 |
|
U |
116 |
public long getp5() { |
|
117 |
return p5; |
|
118 |
} |
|
119 |
|
|
120 |
public void setp5(long p5) { |
|
121 |
this.p5 = p5; |
|
122 |
} |
66d68b
|
123 |
} |