#include <data.h>
Collaboration diagram for slist_t:

Data Fields | |
| int | var_typeid |
| Variable resource type ID. | |
| int | varnum |
| Length of the array (number of variable resources). | |
| int * | tuplenum |
| Length of the array. | |
| int ** | tupleid |
| Array of tuple IDs. First index n goes from 0 to the number of resources with var_typeid resource type ID minus 1. Second index m goes from 0 to tuplenum[n]. | |
| slist * | next |
| Pointer to the next element in linked list. NULL if this is the last element. | |
Slist structure holds a look-up table for use in fitness functions in modules.
tupleid is a two-dimensional array of tuple IDs. tupleid[resid][n] points to the n th tuple that is using resource with resource ID resid and resource type ID var_typeid.
Example usage: var_typeid is a resource type ID of the "time" resource. In this case the timetable can be easily checked which tuples are scheduled at the same time.
1.5.2