Re: [tablix-list] subjects-sameday.c tablix2 port

From: Tomaz Solc <tomaz.solcREMOVE@THISsiol.net>
Date: Thu Oct 20 2005 - 19:20:10 CEST

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

Hi

> I have been looking at the new kernel (the docs are great!)

I'm happy to hear that.

> i have ported one of my old modules just to give it a try.

Thanks for your module. I've added it to the CVS repository under the
name "events_sameday.c".

I've removed a lot of unnecessary loops from the fitness function and
I've cleaned up the initialization function a bit.

You only need to check events that are stored in the sameday struct -
you already have their tuple IDs stored in there. To find out on which
day two events are scheduled, you take the "time" chromosome and lookup
the resource ID by their tuple IDs. Divide the resource IDs of the
"time" resources two events are using by the number of periods in each
day and you have the day numbers.

This way you only need the simple chromosome structure, not the
expensive extension. Also your module as far as I see doesn't need to
know anything about classes.

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

iD8DBQFDV9HKsAlAlRhL9q8RAldBAJ9Q1wNjNmsNOUF9R/MqG+YCA/7siQCg4LG0
MBNTYuOXArP0A1lMyPr1TWw=
=zN7O
-----END PGP SIGNATURE-----
Received on Thu Oct 20 19:20:13 2005

This archive was generated by hypermail 2.1.8 : Fri Oct 21 2005 - 06:29:38 CEST