This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
stats:schema:group [2011/09/28 20:30] Patrick Michel [Tutor Management] |
stats:schema:group [2011/09/29 16:49] Patrick Michel |
||
---|---|---|---|
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 ===== | ||
Line 7: | Line 7: | ||
<code xcend> | <code xcend> | ||
element groups { | element groups { | ||
- | element group * id { [ count(./id, ..exercise/students/student/group) < ./maxSize ] | + | element group * id { [ count(./id, ..exercise/students/student/group) < ./maxSize ] # 4.1, 2.8 |
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 maxSize { integer [ . >= 0 ]} | + | attribute curSize { integer [ . = count(../id, ..exercise/students/student/group) ]} # NEW |
+ | attribute maxSize { integer [ . >= 0 ]} # 3.1 | ||
- | element tutor * account {[ exists //accounts/account[./account] ]} | + | element tutor * account {[ exists //accounts/account[./account]/tutor[..exercise/id]/group[..group/id] ]} # 1.5, 2.9 |
} | } | ||
} | } |