<?xml version="1.0" encoding="utf-8"?>
<!--
Tablix XML problem description equivalent to selected-ttml.xml TTML document

Converted by hand by Tomaz Solc to serve as an example of conversion between
TTML and Tablix Timetabling Model.

This file will not work with Tablix since ttml-*.so modules that implement 
TTML-compatible constraint functions are missing. However it is a valid Tablix
problem description file, conforming to TTM 0.2.0r1 (check with xmllint)
-->

<!DOCTYPE ttm PUBLIC "-//Tablix//DTD TTM 0.2.0//EN" "http://www.tablix.org/releases/dtd/tablix2r1.dtd">
<ttm version="0.2.0">
	<info>
	        <title>An example TTML document</title>
        	<author>Ender Ozcan</author>
	</info>
	<modules>
		<module name="ttml-nooverlap" weight="100" mandatory="yes">
			<option name="projection">child</option>
			<option name="argument">curriculum-terms</option>
		</module>
		<module name="ttml-nooverlap" weight="100" mandatory="yes">
			<option name="projection">child</option>
			<option name="argument">lecturers</option>
		</module>
		<module name="ttml-preset" weight="100" mandatory="yes">
			<option name="dim">classroom</option>
			<option name="argument">CSE211.01</option>
			<option name="argument">A100</option>
		</module>
		<!--
		<module name="ttml-exclude" weight="100" mandatory="yes">
			<option name="argument">CSE311.01</option>
			<option name="argument">1 1,2 2</option>
		</module>
		-->
		<module name="ttml-noclash" weight="100" mandatory="yes">
			<option name="projection">single</option>
			<option name="dim">classroom</option>
			<option name="argument">V</option>
		</module>
		<module name="ttml-attrcomp" weight="100" mandatory="yes">
			<option name="projection">single</option>
			<option name="comp">&lt;=</option>
			<option name="argument">V</option>
			<option name="argument">T</option>
			<option name="argument">noOfStudents</option>
			<option name="argument">classrooms</option>
			<option name="argument">capacity</option>
		</module>
	</modules>
	<resources>
		<constant>
			<resourcetype type="lecturers">
				<resource name="Ender Ozcan"/>
				<resource name="Ferda Dogan"/>
			</resourcetype>
			<resourcetype type="curriculum-terms">
				<resource name="Term#2"/>
				<resource name="Term#3"/>
			</resourcetype>
		</constant>
		<variable>
			<resourcetype type="T">
				<matrix width="5" height="9"/>
			</resourcetype>
			<resourcetype type="classrooms">
				<resource name="A100">
					<restriction type="ttml-attribute-capacity">50</restriction>
				</resource>
				<resource name="A201">
					<restriction type="ttml-attribute-capacity">30</restriction>
				</resource>
				<resource name="B101">
					<restriction type="ttml-attribute-capacity">50</restriction>
				</resource>
				<resource name="B103">
					<restriction type="ttml-attribute-capacity">50</restriction>
				</resource>
			</resourcetype>
		</variable>
	</resources>
	<events>
		<event name="CSE211.01" repeats="1">
			<resource type="lecturers" name="Ender Ozcan"/>
			<resource type="curriculum-terms" name="Term#2"/>
			
			<restriction type="ttml-attribute-noOfStudents">34</restriction>
			<restriction type="ttml-duration">2</restriction>
		</event>
		<event name="CSE211.02" repeats="1">
			<resource type="lecturers" name="Ferda Dogan"/>
			<resource type="curriculum-terms" name="Term#2"/>
			<restriction type="ttml-attribute-noOfStudents">27</restriction>
			<restriction type="ttml-duration">2</restriction>
		</event>
		<event name="CSE311.01" repeats="1">
			<resource type="lecturers" name="Ender Ozcan"/>
			<resource type="curriculum-terms" name="Term#2"/>
			<restriction type="ttml-attribute-noOfStudents">20</restriction>
		</event>
		<event name="CSE462.01" repeats="1">
			<resource type="lecturers" name="Ferda Dogan"/>
			<resource type="curriculum-terms" name="Term#3"/>
			<restriction type="ttml-attribute-noOfStudents">25</restriction>
		</event>
	</events>
</ttm>
