Modification to preferred.c?

From: Nicholas Robinson <nprREMOVE@THISbottlehall.co.uk>
Date: Fri Jun 03 2005 - 00:36:36 CEST

Hi

In view of the change you made to consecutive.c, I think we need a change to
preferred.c. Consider the following:

<event name="Games" repeats="4">
        <restriction type="preferred-day">1</restriction>
        <restriction type="preferred-period">1</restriction>
        <resource type="teacher" name="NPR"/>
        <resource type="class" name="1B"/>
</event>

What is meant by this? One or other of preferred-day or preferred-period could
be sensible, but having both when repeats>1 doesn't seem a good idea!

Putting a consecutive restriction as follows then makes the intention clear
here:

<event name="Games" repeats="4">
        <restriction type="consecutive"/>
        <restriction type="preferred-day">1</restriction>
        <restriction type="preferred-period">1</restriction>
        <resource type="teacher" name="NPR"/>
        <resource type="class" name="1B"/>
</event>

This should schedule a block of four lessons starting in lesson 2 on day 2.

I can see a way to implement this sensibly - and issue appropriate warnings if
restrictions are ignored/partially applied, if you think it is right.

Good Night

Nick
Received on Fri Jun 03 00:36:56 2005

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