FET Forum

FET Development => Suggestions => Topic started by: Mr Robo on June 04, 2010, 07:05:31 AM

Title: Label Break Time Constraints
Post by: Mr Robo on June 04, 2010, 07:05:31 AM
In the Time tab, Break button, leading to the dialogue to set up break times... At the moment, I set up one break time constraint that has morning breaks and lunch breaks combined.

If I set up two (one for break and one for lunch) and I could attach a label that would be displayed in the unavailable slots in the finished timetable, such as 'Break' or 'Lunch', it would save me having to edit each Student, Teacher and Room timetable before they can be printed, etc. It's quite manual at the moment because '-X-' is used throughout and I can't do a global search and replace.

If I've missed something and there is a way, then I'm sorry to have wasted your time.
Title: Re: Label Break Time Constraints
Post by: Liviu Lalescu on June 04, 2010, 08:18:22 AM
There is no direct way to do what you want.

I have a suggestion: you could name the hours "Break" and "Lunch" (morning break and lunch break). In the final timetable there will appear these hours' names and an -X-. Why is -X- undesirable for you? Everybody understands it is a break.

I'll add your suggestion in the TODO.

Can you compile FET from sources? Do you know a bit of C++ programming? Then I could tell you what to do to change FET to work as you need.

Maybe Volker has other ideas to make what you need, simpler.

I might be on a trip this weekend, I am not sure I'll be able to answer until Sunday evening.
Title: Re: Label Break Time Constraints
Post by: Volker Dirr on June 04, 2010, 06:50:30 PM
maybe you can just use activities with subject "break" or "lunch", of course add all years (maybe also teachers, depending on your dataset). (be carefull with gaps, min hours and max hours constraints if you do it that way).
Title: Re: Label Break Time Constraints
Post by: Liviu Lalescu on June 06, 2010, 07:12:48 PM
Quotemaybe you can just use activities with subject "break" or "lunch", of course add all years (maybe also teachers, depending on your dataset). (be carefull with gaps, min hours and max hours constraints if you do it that way).

Too unneeded difficulty added this way.
Title: Re: Label Break Time Constraints
Post by: Mr Robo on June 17, 2010, 02:04:41 AM
Hi

Yes, I built FET from source, so making a change wouldn't be a problem. I'd be grateful for a hint as to where to go to add it the label. I'll post diffs back afterwards.

I've completed the trials and FET will save two weeks work this summer. Thanks for a great and easy to use application!
Title: Re: Label Break Time Constraints
Post by: Liviu Lalescu on June 17, 2010, 04:44:51 AM
QuoteHi

Yes, I built FET from source, so making a change wouldn't be a problem. I'd be grateful for a hint as to where to go to add it the label. I'll post diffs back afterwards.

I've completed the trials and FET will save two weeks work this summer. Thanks for a great and easy to use application!

src/engine/timetableexport.cpp.

Line 3990 and many others (maybe other 31 places below).

Test if j==certainHourYourWriteHere and k==certainDayYouWriteHere.

Modify the writeBreakSlot function, maybe.