User Tools

Site Tools


stats:proc:changeresult_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
stats:proc:changeresult_sheet [2011/10/12 14:42] – created Patrick Michelstats:proc:changeresult_sheet [2013/07/10 12:34] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== changeResult (Sheet) ======+====== Change Result (Sheet) ======
  
 <code xcend> <code xcend>
-changeResult(string uid, string id, string studentId, string sheetId, double value) { +changeResult(ident uid, ident id, ident studentId, ident sheetId, double points) { 
-  tbd+  assume exists /account[uid]/assistant[id] 
 +      || exists /account[uid]/tutor[id]/group[/exercise[id]/student[studentId]/group]; 
 +  
 +  assume exists /exercise[id]/student[studentId]; # implies the existence of the exercise 
 +  assume exists /exercise[id]/sheet[sheetId]; # dito 
 +  
 +  assume points >= 0 && points <= /exercise[id]/sheet[sheetId]/maxPoints; 
 + 
 +  assume exists /exercise[id]/student[studentId]/result[sheetId]; 
 +  
 +  update /exercise[id]/student[studentId]/result[sheetId]/points points;
 } }
 </code> </code>
  
stats/proc/changeresult_sheet.1318423328.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki