Back to index

maxperday.so module reference

Description

This module prevents resources of one constant type (e.g. teachers or class) to have more than the set maximum number of events scheduled per day.

For each resource the number of weights added is equal to the number of events scheduled in a day that exceeds the maximum number (in the example below if a teacher has 7 events scheduled on one day, this module will add 2 weights)

If you would like to use this module for more than one resource type, you can safely include two <module> tags with different "resourcetype" options.

The following example will make this module check if each teacher has no more than 5 events scheduled per day.

<module name="maxperday" weight="60" mandatory="yes">
	<option name="resourcetype">teacher</option>
	<option name="maxperday">5</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

maxperday

Use this option to specify the maximum number of events per day, Its contents must be a positive integer.

resourcetype

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

Module groups

This module belongs to the following groups:

Author

Tomaz Solc, tomaz.solc@tablix.org

Back to index