From 8f89704812be24ff475a1b28153e6286cbf7cd43 Mon Sep 17 00:00:00 2001 From: Ileana Krontsi Date: Sun, 15 Nov 2015 16:51:28 +0100 Subject: [PATCH] Klasse StationsHistorie angelegt. --- .../mi/projmi6/model/StationsHistorie.java | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java diff --git a/src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java b/src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java new file mode 100644 index 0000000..a59bbc0 --- /dev/null +++ b/src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java @@ -0,0 +1,69 @@ +package de.uniluebeck.mi.projmi6.model; + +import javafx.beans.property.SimpleIntegerProperty; +import javafx.beans.property.SimpleObjectProperty; + +import java.time.LocalDateTime; + +/** + * Created by Eugene on 15.11.2015. + */ +public class StationsHistorie extends Version { + private SimpleObjectProperty aufnahmeDatum = new SimpleObjectProperty<>(this, "aufnahmeDatum"); + private SimpleObjectProperty entlassungsDatum = new SimpleObjectProperty<>(this, "entlassungsDatum"); + private Fall fall; + private Station station; + private SimpleIntegerProperty StatHistID = new SimpleIntegerProperty(this, "stathistid"); + + public LocalDateTime getAufnahmeDatum() { + return aufnahmeDatum.get(); + } + + public SimpleObjectProperty aufnahmeDatumProperty() { + return aufnahmeDatum; + } + + public void setAufnahmeDatum(LocalDateTime aufnahmeDatum) { + this.aufnahmeDatum.set(aufnahmeDatum); + } + + public LocalDateTime getEntlassungsDatum() { + return entlassungsDatum.get(); + } + + public SimpleObjectProperty entlassungsDatumProperty() { + return entlassungsDatum; + } + + public void setEntlassungsDatum(LocalDateTime entlassungsDatum) { + this.entlassungsDatum.set(entlassungsDatum); + } + + public Fall getFall() { + return fall; + } + + public void setFall(Fall fall) { + this.fall = fall; + } + + public Station getStation() { + return station; + } + + public void setStation(Station station) { + this.station = station; + } + + public int getStatHistID() { + return StatHistID.get(); + } + + public SimpleIntegerProperty statHistIDProperty() { + return StatHistID; + } + + public void setStatHistID(int statHistID) { + this.StatHistID.set(statHistID); + } +}