This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 
                    stats:schema:student [2011/09/28 20:40] Patrick Michel created  | 
                
                    stats:schema:student [2013/07/10 12:47] (current) | 
            ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| <code xcend> | <code xcend> | ||
| - | element students { | + | element student * id { [ count (./id, /account/student/id) = 1 ] | 
| - | element student * id { [ exists //accounts/account/student[./id] ] | + | attribute group ? { ident [ exists ..exercise/group[.] ]} | 
| - | attribute group ? { ident [ exists ..exercise/groups/group[.] ]} | + | attribute team ? { ident [ exists ../group ]} | 
| - | element result * sheet { [ exists ..exercise/sheets/sheet[./sheet] ] | + | element result * sheet { [ exists ..exercise/sheet[./sheet] ] | 
| - | attribute points  { double [ . >= 0 && . <= ..exercise/sheets/sheet[../sheet]/maxPoints ]} | + | attribute points  { double [ . >= 0 && . <= ..exercise/sheet[../sheet]/maxPoints ]} | 
| - | } | + | } | 
| - | } | + | } | 
| - | }  | + | |
| </code> | </code> | ||
| ===== Procedures ===== | ===== Procedures ===== | ||
| + | |||
| + | ==== Exercise Registration ==== | ||
| + | |||
| + | Before a student can sign up for a group, he has to register for the exercise in general. (Which is not a student method in the current implementation.) | ||
| + | |||
| + | {{page>stats:proc:registerStudent&noheader&nofooter}} | ||
| + | |||
| + | {{page>stats:proc:unregisterStudent&noheader&nofooter}} | ||
| + | |||
| ==== Sign-Up and Sign-Out ==== | ==== Sign-Up and Sign-Out ==== | ||
| Line 25: | Line 33: | ||
| {{page>stats:proc:signOutGroup&noheader&nofooter}} | {{page>stats:proc:signOutGroup&noheader&nofooter}} | ||
| + | |||
| + | |||
| + | ==== Team Assignment ==== | ||
| + | |||
| + | The tutors assign teams to the students of their groups. | ||
| + | |||
| + | {{page>stats:proc:assignTeam&noheader&nofooter}} | ||
| + | |||
| + | {{page>stats:proc:leaveTeam&noheader&nofooter}} | ||
| + | |||
| + | ==== Result Management ==== | ||
| + | |||
| + | {{page>stats:proc:addResult (Sheet)&noheader&nofooter}} | ||
| + | {{page>stats:proc:changeResult (Sheet)&noheader&nofooter}} | ||
| + | {{page>stats:proc:removeResult (Sheet)&noheader&nofooter}} | ||