This shows you the differences between two versions of the page.
stats:schema:exercise [2011/09/29 11:04] Patrick Michel [Schema] |
stats:schema:exercise [2013/07/10 12:49] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Exercise Management and Sheets ====== | ||
- | |||
- | This page describes a major part of the [[:stats:start]] [[:stats:schema]], namely the exercise management, including groups, sheets and student results. It is a part of [[stats]] and contains [[student]] as well as [[group]]. | ||
- | |||
- | ===== Schema ===== | ||
- | |||
- | <code xcend> | ||
- | element exercises { | ||
- | element exercise * id { # 2.6 | ||
- | attribute lecture { string } | ||
- | attribute term { string } | ||
- | |||
- | element assistant * account {[ exists //accounts/account[./account] ]} # 1.4, 2.7 | ||
- | </code> | ||
- | |||
- | {{page>group#Schema&noheader&nofooter&noindent}} | ||
- | |||
- | <code xcend> | ||
- | element sheets { | ||
- | element sheet * id { | ||
- | attribute maxPoints { double [ . >= 0 ]} | ||
- | } | ||
- | } | ||
- | </code> | ||
- | |||
- | {{page>student#Schema&noheader&nofooter&noindent}} | ||
- | |||
- | <code xcend> | ||
- | } | ||
- | } | ||
- | </code> | ||
- | |||
- | ===== Procedures ===== | ||
- | |||
- | ==== Change Attributes ==== | ||
- | |||
- | {{page>stats:proc:changeAttributes (Exercise)&noheader&nofooter}} | ||
- | |||
- | |||
- | ==== Assistant Management ==== | ||
- | |||
- | The procedures from [[:stats:schema:account]] for the assistant role can be directly reused. | ||
- | |||
- | {{page>stats:proc:grantAssistantRights&noheader&nofooter}} | ||
- | |||
- | {{page>stats:proc:revokeAssistantRights&noheader&nofooter}} | ||
- | |||
- | ==== Group Management ==== | ||
- | |||
- | The tutor role from section [[:stats:schema:account]] and the students depend on groups, which restricts deletion. The [[group]] are a large enough parts of the schema to have their own section and associated procedures. | ||
- | |||
- | {{page>stats:proc:createGroup&noheader&nofooter}} | ||
- | |||
- | {{page>stats:proc:deleteGroup&noheader&nofooter}} | ||
- | |||
- | ==== Sheet Management ==== | ||
- | |||
- | The student results depend on sheets. | ||
- | |||
- | {{page>stats:proc:createSheet&noheader&nofooter}} | ||
- | |||
- | {{page>stats:proc:deleteSheet&noheader&nofooter}} | ||
- | |||
- | ==== Student Management ==== | ||
- | |||
- | Students themselves depend on an account, but nothing depends on them; Their results stand for themselves. As with [[group]], [[student]] are large enough to warrant their own section and associated procedures. | ||
- | |||
- | {{page>stats:proc:addStudent&noheader&nofooter}} | ||
- | |||
- | {{page>stats:proc:removeStudent&noheader&nofooter}} | ||