This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
stats:schema:group [2011/09/28 20:14] Patrick Michel created |
stats:schema:group [2013/07/10 12:47] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Exercise Groups ====== | ====== Exercise Groups ====== | ||
| - | This page describes a minor part of the [[:stats:start]] [[:stats:schema]], namely the exercise groups. | + | This page describes a minor part of the [[:stats:start]] [[:stats:schema]], namely the exercise groups. It is a part of [[exercise]]. |
| ===== Schema ===== | ===== Schema ===== | ||
| <code xcend> | <code xcend> | ||
| - | element groups { | + | element group * id { [ count(./id, ..exercise/student/group) <= ./maxSize ] |
| - | element group * id { [ count(./id, ..exercise/students/student/group) < ./maxSize ] | + | attribute day { "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday" } |
| - | attribute day { "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday" } | + | attribute time { string } |
| - | attribute time { string } | + | attribute location { string } |
| - | attribute location { string } | + | attribute curSize { integer [ . = count(../id, ..exercise/student/group) ]} |
| - | attribute maxSize { integer [ . >= 0 ]} | + | attribute maxSize { integer [ . >= 0 ]} |
| - | + | ||
| - | element tutor * account {[ exists //accounts/account[./account] ]} | + | element tutor * account {[ exists /account[./account]/tutor[..exercise/id]/group[..group/id] ]} |
| - | } | + | } |
| - | } | + | |
| </code> | </code> | ||
| Line 23: | Line 22: | ||
| {{page>stats:proc:changeAttributes (Group)&noheader&nofooter}} | {{page>stats:proc:changeAttributes (Group)&noheader&nofooter}} | ||
| + | |||
| + | ==== Tutor Management ==== | ||
| + | |||
| + | The procedures for tutor management can be directly taken from the [[account]] section. In an OO setting this placement of the method in the ''Group'' class takes the least number of explicit parameters, as the exercise and group ids are implicit. | ||
| + | |||
| + | {{page>stats:proc:grantTutorRights&noheader&nofooter}} | ||
| + | |||
| + | {{page>stats:proc:revokeTutorRights&noheader&nofooter}} | ||
| + | |||
| + | ==== Member Management ==== | ||
| + | |||
| + | Another example of another association of procedures; The sign up and out procedures for students from the [[exercise]] section could also be offered on groups, as they have the necessary parameters (It is not currently realized like this in the implementation). | ||
| + | |||
| + | {{page>stats:proc:signUpGroup&noheader&nofooter}} | ||
| + | |||
| + | {{page>stats:proc:signOutGroup&noheader&nofooter}} | ||