RE: [tablix-list] Re: problem with xml file

From: Sébastien <sebastien.theysREMOVE_at_THISugent.be>
Date: Thu, 2 Aug 2007 12:58:43 +0200

Hi,

Doesn't it has to be the following in your example:

"......

An event that is attended by 20 students can then be defined like this:

<event name="event" repeats="1">
        <restriction type="capability">20students</restriction>
</event> "

Thus in the last line 20students and not 10 as mentioned before?

Best regards,

Sébastien

-----Oorspronkelijk bericht-----
Van: Tomaz Solc [mailto:tomaz.solc_at_tablix.org]
Verzonden: woensdag 1 augustus 2007 17:36
Aan: tablix-list_at_tablix.org
Onderwerp: [tablix-list] Re: problem with xml file

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

> I have a question about capcities. In fact my problem is an examination
> timetabling problem. I was wondering if it is possible to give a
> capacity IN NUMBER OF SEATS to a room, or capacity for a class in NUMBER
> OF STUDENTS. This because I’m wondering how the program otherwise will
> assign an adequate room for each exam. (This problem is not considered
> in the example UNI.XML).

You would have to write a new fitness module to support such a
constraint. See Tablix modules HOW-TO for instructions on how to do this.

On the other hand you can try to use "placecapability" module to
simulate the capacity of a room:

For example if a room has capacity for 30 students it can take groups
with 10, 20 or 30 students:

<resource name="room">
        <restriction type="capability">10students</restriction>
        <restriction type="capability">20students</restriction>
        <restriction type="capability">30students</restriction>
</resource>

An event that is attended by 20 students can then be defined like this:

<event name="event" repeats="1">
        <restriction type="capability">10students</restriction>
</event>

Best regards
Tomaz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGsKhJsAlAlRhL9q8RAjsTAJ97qFhmf6PywPhDxP/fH9v9NLTTDQCggCZH
x6E6nX7oJGKnjO5pM6PDUNk=
=p2C1
-----END PGP SIGNATURE-----
Received on Thu Aug 02 2007 - 12:58:50 CEST

This archive was generated by hypermail 2.2.0 : Fri Aug 03 2007 - 06:30:24 CEST