resourcetype_t Struct Reference

Resource type structure. More...

#include <chromo.h>

Collaboration diagram for resourcetype_t:

Collaboration graph
[legend]

Data Fields

char * type
 Name of this resource type.
int var
 Set to 1 if this is a variable resource and set to 0 if this is a constant resource.
int typeid
 Resource type ID.
int ** conflicts
 This is a two-dimensional array describing conflicts between resources of this type.
int ** c_lookup
 Lookup table for conflicts.
int * c_num
 Lengths of lookup arrays.
int c_inuse
 Set to 1 if there are non-trivial conflicts defined.
int resnum
 Number of resources of this type.
resourceres
 Array of resnum resources.

Detailed Description

Resource type structure.

This structure describes a type of resources (for example: teachers, groups of students, classrooms, timeslots, etc.)


Field Documentation

int** resourcetype_t::conflicts

This is a two-dimensional array describing conflicts between resources of this type.

If

 conflists[n][m]==1 
then the resources with resource IDs n and m conflict. This means that the variable resources used with events with resource n will show on the extensions for resource m and vice versa.

int** resourcetype_t::c_lookup

Lookup table for conflicts.

 c_loopup[n] 
is an array of resources that conflict with resource n. Length of array is
 c_num[n] 
.


Generated on Tue Jul 3 13:23:37 2007 for Tablix by  doxygen 1.5.2