FET Data Format: Documented?

Started by Michael, September 29, 2009, 07:21:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Michael

Is the FET File-Format documented anywhere?

Although the XML-Notation is quite straightforward, most Sample-Files incorporate only a small part of the features of FET.

thanks
Michael

Liviu Lalescu

QuoteIs the FET File-Format documented anywhere?

Although the XML-Notation is quite straightforward, most Sample-Files incorporate only a small part of the features of FET.

thanks
Michael

Unfortunately, it is not documented  :-[

You can read the file src/engine/rules.cpp, function Rules::read for details.

You can add institution name, comments, days per week, hours per day, subjects, activity tags, teachers, students years, groups, subgroups, activities, rooms, buildings, time constraints, space constraints. This is all the data.

Volker Dirr

There is no special documentation.

So you can do 2 things:
1. generate a sample file that contain each constraint one time and just check the file yourself.

or, if you need it more detailed:
2. have a look into /src/engine/rules.cpp

first of all read function bool Rules::write(const QString& filename)
so you can see the order/structure of the xml file.
then maybe also read function bool Rules::read(const QString& filename) to get some more detailes.

Michael

All right. I will show up again when I don't understand anything (or everything ;))

thank you for the fast information!

senoritanx

i do not find any src/engine/rules.cpp file on my computer.

please let me know where it will be resided

Liviu Lalescu

#5
Quotei do not find any src/engine/rules.cpp file on my computer.

please let me know where it will be resided

It is not present in the Windows exe archive. You need to download the sources tar.bz2 and unpack.

Volker Dirr

#6
Get this tool if you can't unpack:
http://www.7-zip.org/