/*
|
Zeitrechnung - a class library to determine calendar events
|
Copyright (c) 1984-2023 Ulrich Hilger, http://uhilger.de
|
|
This program is free software: you can redistribute it and/or modify
|
it under the terms of the GNU Affero General Public License as published by
|
the Free Software Foundation, either version 3 of the License, or
|
(at your option) any later version.
|
|
This program is distributed in the hope that it will be useful,
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
GNU Affero General Public License for more details.
|
|
You should have received a copy of the GNU Affero General Public License
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
*/
|
package de.uhilger.zeitrechnung;
|
|
/**
|
* Definition von Ereignissen in Form von Ganzzahl-Werten.
|
*
|
* Die Belegung der Parameter p1, p2, p3, p4 ist in der Dokumentation zur
|
* jeweiligen Ereignisklasse beschrieben, durch die auch die Uebertragung
|
* aus dieser Klasse Definition zu einer Auspraegung im Sinne der
|
* Klassenbibliothek Zeitrechnung geschieht.
|
*
|
* @author Ulrich Hilger
|
*/
|
public class Definition {
|
|
public static final int SONNTAG = 0;
|
public static final int MONTAG = 1;
|
public static final int DIENSTAG = 2;
|
public static final int MITTWOCH = 3;
|
public static final int DONNERSTAG = 4;
|
public static final int FREITAG = 5;
|
public static final int SAMSTAG = 6;
|
|
public static final int JANUAR = 1;
|
public static final int FEBRUAR = 2;
|
public static final int MAERZ = 3;
|
public static final int APRIL = 4;
|
public static final int MAI = 5;
|
public static final int JUNI = 6;
|
public static final int JULI = 7;
|
public static final int AUGUST = 8;
|
public static final int SEPTEMBER = 9;
|
public static final int OKTOBER = 10;
|
public static final int NOVEMBER = 11;
|
public static final int DEZEMBER = 12;
|
|
public static final int LETZTER = -1;
|
|
public static final double FRUEHLING = (double) 0;
|
public static final double SOMMER = (double) 90;
|
public static final double HERBST = (double) 180;
|
public static final double WINTER = (double) 270;
|
|
private String name;
|
private int typ;
|
private long p1;
|
private long p2;
|
private long p3;
|
private long p4;
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public int getTyp() {
|
return typ;
|
}
|
|
public void setTyp(int typ) {
|
this.typ = typ;
|
}
|
|
public long getp1() {
|
return p1;
|
}
|
|
public void setp1(long p1) {
|
this.p1 = p1;
|
}
|
|
public long getp2() {
|
return p2;
|
}
|
|
public void setp2(long p2) {
|
this.p2 = p2;
|
}
|
|
public long getp3() {
|
return p3;
|
}
|
|
public void setp3(long p3) {
|
this.p3 = p3;
|
}
|
|
public long getp4() {
|
return p4;
|
}
|
|
public void setp4(long p4) {
|
this.p4 = p4;
|
}
|
}
|