Re: [tablix-list] How to access current room allocation

From: Nicholas Robinson <nprREMOVE@THISbottlehall.co.uk>
Date: Sun May 08 2005 - 22:08:48 CEST

Aha, serendipity strikes. Your comment about the ordering/presence of the
fitness_request_chromo calls is the cause of my second problem. Putting them
correctly solves the problem!

On Sunday 08 May 2005 20:48, Nicholas Robinson wrote:
> Hi
>
> I'm trying to replace the 'preferred-room' functionality from 0.1.0 in
> 0.2.1. The requirement is to allow a teacher to teach, wherever possible
> from his/her own classroom. It seemed the most obvious to make this a
> teacher restriction.
>
> The attached code fails in two ways:
>
> 1. The handler never seems to get called. This appears to be a similar
> problem to the other one with the tuple handler not being called - but
> restricted to resource type 'teacher'. If I try to put a 'conflicts-with'
> restriction in a teacher then the handler in sametime.c doesn't get called
> either.
>
> 2. I think I've made a mistake in the test. I am obviously trying to check
> the currently allocated room against any preference for a teacher. It seems
> to be locating the teacher okay and thus finding the preferred room, but
> room->gen[m] seems to return far higher id values than would be sensible.
>
> Thanks and Best Wishes
>
> Nick

-- 
Fight Prejudice - Fight the Ban (see www.countrysidealliance.org)
Received on Sun May 08 22:05:18 2005

This archive was generated by hypermail 2.1.8 : Tue Aug 16 2005 - 20:43:30 CEST