Label Break Time Constraints

Started by Mr Robo, June 04, 2010, 07:05:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mr Robo

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.

Liviu Lalescu

#1
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.

Volker Dirr

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).

Liviu Lalescu

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.

Mr Robo

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!

Liviu Lalescu

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.