Hello,
I have classes dividided this way:
Class Division criterium Groups
1.A Language1 A1
A2
Language2 N1
N2
where activities for A1 and A2 can take place simultaneously (they are from the same "division criterium") and activities for A1 and N1 (they are from different "division criterium") cannot be scheduled for the same times.
The following FET XML snippet ensures what I wrote above.
<Students_List>
<Year>
<Name>1.A</Name>
<Number_of_Students>0</Number_of_Students>
<Group>
<Name>1.A A1</Name>
<Number_of_Students>0</Number_of_Students>
<Subgroup>
<Name>1.A A1 N1</Name>
<Number_of_Students>0</Number_of_Students>
</Subgroup>
<Subgroup>
<Name>1.A A1 N2</Name>
<Number_of_Students>0</Number_of_Students>
</Subgroup>
</Group>
<Group>
<Name>1.A A2</Name>
<Number_of_Students>0</Number_of_Students>
<Subgroup>
<Name>1.A A2 N1</Name>
<Number_of_Students>0</Number_of_Students>
</Subgroup>
<Subgroup>
<Name>1.A A2 N2</Name>
<Number_of_Students>0</Number_of_Students>
</Subgroup>
</Group>
<Group>
<Name>1.A N1</Name>
<Number_of_Students>0</Number_of_Students>
<Subgroup>
<Name>1.A A1 N1</Name>
<Number_of_Students>0</Number_of_Students>
</Subgroup>
<Subgroup>
<Name>1.A A2 N1</Name>
<Number_of_Students>0</Number_of_Students>
</Subgroup>
</Group>
<Group>
<Name>1.A N2</Name>
<Number_of_Students>0</Number_of_Students>
<Subgroup>
<Name>1.A A1 N2</Name>
<Number_of_Students>0</Number_of_Students>
</Subgroup>
<Subgroup>
<Name>1.A A2 N2</Name>
<Number_of_Students>0</Number_of_Students>
</Subgroup>
</Group>
</Year>
</Students_List>
Now imagine that I add the constraint:
<ConstraintStudentsMaxHoursDaily>
<Weight_Percentage>100</Weight_Percentage>
<Maximum_Hours_Daily>5</Maximum_Hours_Daily>
<Active>true</Active>
<Comments></Comments>
</ConstraintStudentsMaxHoursDaily>
How will FET count the number of hours for students in my scenario? It makes sense that max hours daily for student would be counted from student perspective so I would expect that FET does this:
1) Activities for groups 1.A A1 and 1A A2 can take place simultaneously so they cannot have students in common.
2) Activities for groups 1.A A1 and 1A N1 cannot take place simultaneously so they can have students in common.
Consequently FET should count max hours daily for all following pairs of groups:
1.A A1 and 1.A N1,
1.A A1 and 1.A N2,
1.A A2 and 1.A N1,
1.A A2 and 1.A N2
Am I correct or not?
Thank you!
The simplest way is this: consider that the constraint is applied to the subgroups. And each activity is applied to the subgroups in the activity's year or group.
I see my question was not clear enough because it seems you misunderstood me. I'll try to rephrase the question.
If you add a constraint to all students, then FET check it for each subgroup. If a year (or group) doesn't has a subgroup, then FET will automaticly add a subgroup name and also check the constraint for this subgroup.