Back to index

firstorlast.so module reference

Description

This module prevents constant resources of one type (for example teachers) to have events scheduled on the first and the last time slots on the same day.

For example if a teacher has an event scheduled on the first time slot in a day then it must have the last time slot in that day free. On the other hand if a teacher has an event scheduled on the last time slot it must have the first time slot free.

The number of weights added by this module is equal to the number of days in the timetable that do not conform to this constraint.

The following example will make this module check teacher's timetable:

<module name="firstorlast" weight="60" mandatory="yes">
	<option name="resourcetype">teacher</option>
</module>

Required resource types

Configuration file must define the following resource types in order to use this module:

Defined resource restrictions

Defined tuple restrictions

Supported module options

resourcetype

Use this option to specify a constant resource type for which this module will be in effect.

You can use multiple resourcetype options for one module.

Module groups

This module belongs to the following groups:

Author

Tomaz Solc, tomaz.solc@tablix.org

Back to index