-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from FontysVenlo/v2024
V2024
- Loading branch information
Showing
11 changed files
with
148 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,54 +18,22 @@ | |
* @author Richard van den Ham {@code [email protected]} | ||
* @author Pieter van den Hombergh {@code [email protected]} | ||
*/ | ||
public interface Appointment extends TimeSlot, AppointmentData { | ||
|
||
/** | ||
* Get the priority of this appointment. | ||
* | ||
* @return Priority. | ||
*/ | ||
@Override | ||
Priority getPriority(); | ||
|
||
/** | ||
* Get the appointment data for this appointment. | ||
* | ||
* @return the data | ||
*/ | ||
AppointmentData getAppointmentData(); | ||
public interface Appointment extends TimeSlot { | ||
|
||
/** | ||
* Get the request that led to this appointment. | ||
* | ||
* @return the request. | ||
*/ | ||
AppointmentRequest getRequest(); | ||
AppointmentRequest request(); | ||
|
||
/** | ||
* Override the default toString. toString() returns startTime, endTime, | ||
* description and priority like: "2020-09-12 14:00 - 15:55 ALDA Lesson | ||
* (HIGH)" This will make your testing and debugging life so much easier. | ||
* Override the default toString. toString() returns startTime, endTime and description | ||
* like: "2020-09-12 14:00 - 15:55 ALDA Lesson" | ||
* This will make your testing and debugging life so much easier. | ||
* | ||
* @return String representation of Appointment. | ||
*/ | ||
@Override | ||
String toString(); | ||
|
||
/** | ||
* Defines equality. Must be based on all fields of this class. | ||
* | ||
* @param obj the other object to check equality with | ||
* @return true if the two appointments are equal | ||
*/ | ||
@Override | ||
public boolean equals(Object obj); | ||
|
||
/** | ||
* Calculate a hash code value for the object. | ||
* | ||
* @return hashCode for this object | ||
*/ | ||
@Override | ||
public int hashCode(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* taking 45 minutes. | ||
* | ||
* Another example is having a treatment at a dentist or a beauty parlor. The | ||
* duration, priority, and description are known, but there is no time or date | ||
* duration and description are known, but there is no time or date | ||
* allocated yet. | ||
* | ||
* @author Pieter van den Hombergh {@code [email protected]} | ||
|
@@ -21,45 +21,20 @@ public interface AppointmentData { | |
* | ||
* @return the duration of the appointment. | ||
*/ | ||
Duration getDuration(); | ||
Duration duration(); | ||
|
||
/** | ||
* The description of the appointment. | ||
* | ||
* @return non-empty string describing the appointment. | ||
*/ | ||
String getDescription(); | ||
String description(); | ||
|
||
/** | ||
* Get the priority for the appointment. | ||
* | ||
* @return the priority | ||
*/ | ||
Priority getPriority(); | ||
|
||
/** | ||
* Get the textual representation of AppointmentData. Contains description, | ||
* duration and priority. | ||
* Get the textual representation of AppointmentData. Contains description and duration. | ||
* | ||
* @return AppointmentData text. | ||
*/ | ||
@Override | ||
String toString(); | ||
|
||
/** | ||
* Defines equality. Must be based on all fields of this class. | ||
* | ||
* @param obj the other object to check equality with | ||
* @return true if the two appointments are equal | ||
*/ | ||
@Override | ||
public boolean equals(Object obj); | ||
|
||
/** | ||
* Calculate a hash code value for the object. | ||
* | ||
* @return hashCode for this object | ||
*/ | ||
@Override | ||
public int hashCode(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.