FET Forum

FET Development => Suggestions => Topic started by: kdsayang on October 14, 2008, 04:25:30 AM

Title: input file for room
Post by: kdsayang on October 14, 2008, 04:25:30 AM
I have another suggestion. This is for constraints below

(i) a subject for preferred room
(ii) a subject has a set of preferred room

some example for input (csv file)

        subject|room
(i)   subject X|Room A
(ii)  subject X|Room A+Room B+Room C+Room D

It's problems when u have to manually insert for 100 subjects. U have to insert the data for each subject. Very tiring and boring process.

I hope this features will be implement soon.

TQ

Title: Re: input file for room
Post by: Volker Dirr on October 18, 2008, 06:17:53 PM
Hi,

i coded something like that.
If you know how to compile then i will sent you the source.

We will not do that in an official release, because:
1. it is not tested well enough (it is tested with several files well, but i didn't check it with buggy input files.)
2. most users have only a few subjects, most users will not save time by that.
3. What about all others constraints? it will be very difficult to add them (not only because of coding that, especially because of how a user use that files.)
Title: Re: input file for room
Post by: Volker Dirr on October 25, 2008, 11:57:03 AM
I don't want to loose the code, but like i wrote we will not implement it official, so i publish the code here.

just unzip source and copy (overwrite) files in the source->engine directory.

you also need to add the new function Import::importCSVSubjectPreferredRooms() into the interface/fetmainform.cpp.
If you don't know how to do it, then you can just modify line 586 in fetmainform.cpp.
just replace "Import::importCSVActivityTags();" by " Import::importCSVSubjectPreferredRooms()". So you don't import activity tags, you import subject preferred rooms in that case.