2024-10-29 20:17:51 +01:00
|
|
|
public class Lesson {
|
2024-10-29 22:13:53 +01:00
|
|
|
private int room;
|
|
|
|
private String teacherName;
|
|
|
|
private String startTime;
|
|
|
|
private String endTime;
|
|
|
|
private String day;
|
2024-10-29 20:17:51 +01:00
|
|
|
|
2024-10-29 22:13:53 +01:00
|
|
|
// Constructor to initialize all fields
|
|
|
|
public Lesson(int room, String teacherName, String startTime, String endTime, String day) {
|
2024-10-29 20:17:51 +01:00
|
|
|
this.room = room;
|
|
|
|
this.teacherName = teacherName;
|
2024-10-29 22:13:53 +01:00
|
|
|
this.startTime = startTime;
|
|
|
|
this.endTime = endTime;
|
|
|
|
this.day = day;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getRoom() {
|
|
|
|
return room;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getTeacherName() {
|
|
|
|
return teacherName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getStartTime() {
|
|
|
|
return startTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getEndTime() {
|
|
|
|
return endTime;
|
|
|
|
}
|
2024-10-29 20:17:51 +01:00
|
|
|
|
2024-10-29 22:13:53 +01:00
|
|
|
public String getDay() {
|
|
|
|
return day;
|
2024-10-29 20:17:51 +01:00
|
|
|
}
|
2024-10-30 16:02:50 +01:00
|
|
|
|
|
|
|
public boolean isBreak() {
|
|
|
|
// Logic if it is between lessons
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isBigBreak() {
|
|
|
|
// is the break longer than 5 minutes
|
|
|
|
// But was not the last lesson of the day
|
|
|
|
// Is not Lunch break
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isTeacherSwitch() {
|
|
|
|
// is a another teacher in this room
|
|
|
|
return false;
|
|
|
|
}
|
2024-10-29 22:13:53 +01:00
|
|
|
}
|