User Tools

Site Tools


stats:proc:changeattributes_sheet

This is an old revision of the document!


Change Attributes (Sheet)

changeAttributes(ident uid, ident id, ident sheetId, double maxPoints) {
  assume exists //accounts/account[uid]/assistant[id];
 
  assume exists //exercises/exercise[id]/sheets/sheet[sheetId]; # implies the existence of the exercise
 
  assume maxPoints >= 0;
  assume //exercises/exercise[id]/students/student[x]/result[sheetId]/points <= maxPoints;
 
  update //exercises/exercise[id]/sheets/sheet[sheetId]/maxPoints maxPoints;
}
stats/proc/changeattributes_sheet.1317317665.txt.gz · Last modified: 2011/09/29 19:34 by Patrick Michel