derstaubige / jTimetable

MIT License
1 stars 1 forks source link

Not all shouldHours are planned if lecturer doesn't have time but issue could be solved by adding fourth timeslot #7

Open BlackDiamondWing opened 1 year ago

BlackDiamondWing commented 1 year ago

The following timetable was generally generated correctly but the problem that not all shouldHours are planned could be fixed by using the fourth timeslot and therefor is a case we don't consider:

image

BlackDiamondWing commented 1 year ago

With the changes I made it is now automatically adding a fourth timeslot and places the not planed lessons, but it also overwrites the already planed lessons with freetime because the lecturers are not available and there are no lessons left to plan: image

--> We also need to check whether a lesson is already set for this timeslot.

BlackDiamondWing commented 1 year ago

Found mistake, while testing solution attempt, that still needs to be fixed before this solution is usable: image

Might occure because the number of timeslots and it's counter aren't the same: image

BlackDiamondWing commented 1 year ago

For reasons we have 6 timeslots at the second day of the timetable and two of the elements are null: image

derstaubige commented 6 months ago

If a Lecturer is only avaidable on Fridays, the Timetable will not extend over 3 Slots on Fridays image