Index
All Classes and Interfaces|All Packages
A
- ADD_PATIENT - Enum constant in enum class org.example.tui.messages.ScreenId
- addPatient(String, int, Severity, Gender, String, boolean, InsuranceType) - Method in class org.example.tui.AppController
-
Fügt einen neuen Patienten mit allen Pflichtfeldern zur Warteschlange hinzu.
- addPatient(Patient) - Method in class org.example.core.SmartQueue
-
Fügt einen Patienten zur Warteschlange hinzu und sortiert sie neu.
- AddPatientScreen - Class in org.example.tui.screens
-
Formular-Screen zum Anlegen eines neuen Patienten.
- AddPatientScreen(AppController, int, int) - Constructor for class org.example.tui.screens.AddPatientScreen
-
Erstellt einen neuen AddPatientScreen.
- addRandom() - Method in class org.example.tui.AppController
-
Fügt einen zufällig generierten Patienten zur Warteschlange hinzu.
- addWaitingTime() - Method in class org.example.model.Patient
-
Erhöht die Wartezeit des Patienten um eine Einheit.
- AppController - Class in org.example.tui
-
Zentrale Steuerungsklasse der Arztpraxis-TUI.
- AppController() - Constructor for class org.example.tui.AppController
- AppRouter - Class in org.example.tui
-
Screen-Router der Arztpraxis-TUI nach dem Bubble-Tea-Muster.
- AppRouter(AppController) - Constructor for class org.example.tui.AppRouter
C
- code() - Method in enum class org.example.model.Gender
-
Gibt den Code des Geschlechts zurück.
- CRITICAL - Enum constant in enum class org.example.model.Severity
-
Kritischer Zustand, erfordert sofortige Aufmerksamkeit.
D
E
- equals(Object) - Method in record class org.example.tui.messages.PatientTreatedMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.example.tui.messages.SwitchScreenMessage
-
Indicates whether some other object is "equal to" this one.
F
- FATAL - Enum constant in enum class org.example.model.Severity
-
Lebensbedrohlicher Zustand.
- FEMALE - Enum constant in enum class org.example.model.Gender
- fromInput(String) - Static method in enum class org.example.model.Gender
-
Wandelt eine Benutzereingabe in eine Gender-Konstante um.
G
- Gender - Enum Class in org.example.model
-
Repräsentiert das Geschlecht eines Patienten.
- getAge() - Method in class org.example.model.Patient
- getGender() - Method in class org.example.model.Patient
- getIllness() - Method in class org.example.model.Patient
- getInstance() - Static method in class org.example.core.PatientGenerator
-
Gibt die Singleton-Instanz des Patientengenerators zurück.
- getInsuranceType() - Method in class org.example.model.Patient
- getName() - Method in class org.example.model.Patient
- getNextPatient() - Method in class org.example.core.SmartQueue
-
Gibt den nächsten Patienten in der Warteschlange zurück, ohne ihn zu entfernen.
- getPatient() - Method in class org.example.tui.screens.TreatConfirmScreen
-
Gibt den behandelten Patienten zurück.
- getPatients() - Method in class org.example.core.SmartQueue
-
Gibt eine unveränderliche Liste der Patienten in der Warteschlange zurück.
- getPatients() - Method in class org.example.tui.AppController
-
Gibt eine unveränderliche Sicht auf alle Patienten in der Warteschlange zurück, sortiert nach Priorität.
- getSeverity() - Method in class org.example.model.Patient
- getWaitingTime() - Method in class org.example.model.Patient
H
- hashCode() - Method in record class org.example.tui.messages.PatientTreatedMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.example.tui.messages.SwitchScreenMessage
-
Returns a hash code value for this object.
I
- init() - Method in class org.example.tui.AppRouter
- init() - Method in class org.example.tui.screens.AddPatientScreen
- init() - Method in class org.example.tui.screens.MainScreen
- init() - Method in class org.example.tui.screens.TreatConfirmScreen
- InsuranceType - Enum Class in org.example.model
-
Versicherungsart eines Patienten.
- isEmpty() - Method in class org.example.core.SmartQueue
-
Überprüft, ob die Warteschlange leer ist.
- isSchedule() - Method in class org.example.model.Patient
L
- label() - Method in enum class org.example.model.InsuranceType
-
Gibt die lesbare Bezeichnung der Versicherungsart zurück.
M
- main(String[]) - Static method in class org.example.Main
- Main - Class in org.example
- Main() - Constructor for class org.example.Main
- MAIN - Enum constant in enum class org.example.tui.messages.ScreenId
- MainScreen - Class in org.example.tui.screens
-
Hauptscreen der Arztpraxis-TUI.
- MainScreen(AppController, int, int) - Constructor for class org.example.tui.screens.MainScreen
- MainScreen(AppController, int, int, int) - Constructor for class org.example.tui.screens.MainScreen
- MainScreen(AppController, int, int, int, Patient) - Constructor for class org.example.tui.screens.MainScreen
- MALE - Enum constant in enum class org.example.model.Gender
- MINOR - Enum constant in enum class org.example.model.Severity
-
Geringfügige Verletzung oder Krankheit.
- MODERATE - Enum constant in enum class org.example.model.Severity
-
Mäßige Verletzung oder Krankheit.
N
- nextPatient() - Method in class org.example.core.PatientGenerator
-
Erzeugt den nächsten zufälligen Patienten.
O
- org.example - package org.example
- org.example.core - package org.example.core
- org.example.model - package org.example.model
- org.example.tui - package org.example.tui
- org.example.tui.messages - package org.example.tui.messages
- org.example.tui.screens - package org.example.tui.screens
P
- patient() - Method in record class org.example.tui.messages.PatientTreatedMessage
-
Returns the value of the
patientrecord component. - Patient - Class in org.example.model
-
Repräsentiert einen Patienten in der Arztpraxis.
- Patient(String, int, boolean, Severity, Gender, String, InsuranceType) - Constructor for class org.example.model.Patient
-
Erstellt eine neue Patienteninstanz.
- PatientGenerator - Class in org.example.core
-
Ein Patientengenerator, der zufällige Patientendaten erstellt.
- PatientTreatedMessage - Record Class in org.example.tui.messages
- PatientTreatedMessage(Patient) - Constructor for record class org.example.tui.messages.PatientTreatedMessage
-
Creates an instance of a
PatientTreatedMessagerecord class. - PRIVATE - Enum constant in enum class org.example.model.InsuranceType
-
Privatversichert – erhält einen Prioritätsbonus in der Warteschlange.
R
- randomPatient() - Static method in class org.example.core.PatientGenerator
-
Erzeugt einen zufälligen Patienten.
- removeAt(int) - Method in class org.example.tui.AppController
-
Entfernt den Patienten am angegebenen Index aus der Warteschlange.
- removeNextPatient() - Method in class org.example.core.SmartQueue
-
Entfernt den nächsten Patienten aus der Warteschlange und erhöht die Wartezeit der anderen.
- removePatient(Patient) - Method in class org.example.core.SmartQueue
-
Entfernt einen bestimmten Patienten aus der Warteschlange.
S
- ScreenId - Enum Class in org.example.tui.messages
- SEVERE - Enum constant in enum class org.example.model.Severity
-
Schwere Verletzung oder Krankheit.
- Severity - Enum Class in org.example.model
-
Repräsentiert die Dringlichkeitsstufe einer medizinischen Behandlung.
- size() - Method in class org.example.core.SmartQueue
-
Gibt die Anzahl der Patienten in der Warteschlange zurück.
- SmartQueue - Class in org.example.core
-
Eine intelligente Warteschlange für Patienten, die nach Dringlichkeit sortiert.
- SmartQueue() - Constructor for class org.example.core.SmartQueue
-
Erstellt eine neue, leere SmartQueue.
- STATUTORY - Enum constant in enum class org.example.model.InsuranceType
-
Gesetzlich versichert – Standardpriorität.
- SwitchScreenMessage - Record Class in org.example.tui.messages
- SwitchScreenMessage(ScreenId) - Constructor for record class org.example.tui.messages.SwitchScreenMessage
-
Creates an instance of a
SwitchScreenMessagerecord class.
T
- target() - Method in record class org.example.tui.messages.SwitchScreenMessage
-
Returns the value of the
targetrecord component. - toString() - Method in class org.example.core.SmartQueue
-
Gibt eine String-Repräsentation der Warteschlange zurück.
- toString() - Method in class org.example.model.Patient
-
Gibt eine String-Repräsentation des Patienten zurück.
- toString() - Method in record class org.example.tui.messages.PatientTreatedMessage
-
Returns a string representation of this record class.
- toString() - Method in record class org.example.tui.messages.SwitchScreenMessage
-
Returns a string representation of this record class.
- TREAT_CONFIRM - Enum constant in enum class org.example.tui.messages.ScreenId
- TreatConfirmScreen - Class in org.example.tui.screens
-
Bestätigungsscreen nach der Behandlung eines Patienten.
- TreatConfirmScreen(Patient, AppController, int, int) - Constructor for class org.example.tui.screens.TreatConfirmScreen
- treatNext() - Method in class org.example.tui.AppController
-
Behandelt den nächsten Patienten in der Warteschlange und entfernt ihn.
U
- update(Message) - Method in class org.example.tui.AppRouter
- update(Message) - Method in class org.example.tui.screens.AddPatientScreen
- update(Message) - Method in class org.example.tui.screens.MainScreen
- update(Message) - Method in class org.example.tui.screens.TreatConfirmScreen
V
- valueOf(String) - Static method in enum class org.example.model.Gender
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.example.model.InsuranceType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.example.model.Severity
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.example.tui.messages.ScreenId
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.example.model.Gender
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.example.model.InsuranceType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.example.model.Severity
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.example.tui.messages.ScreenId
-
Returns an array containing the constants of this enum class, in the order they are declared.
- view() - Method in class org.example.tui.AppRouter
- view() - Method in class org.example.tui.screens.AddPatientScreen
- view() - Method in class org.example.tui.screens.MainScreen
- view() - Method in class org.example.tui.screens.TreatConfirmScreen
All Classes and Interfaces|All Packages