User Tools

Site Tools


stats:schema

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
stats:schema [2011/09/27 12:50]
Patrick Michel [Account]
stats:schema [2011/10/13 23:17] (current)
Patrick Michel [Structure and Integrity Constraints]
Line 1: Line 1:
 ====== XCend Schema ====== ====== XCend Schema ======
  
-This is the underlying [[:syntax|XCend schema]] of the whole [[:​stats:​start]]. Everything //​persistent//​ is represented in the schema.+This is the underlying [[:start]] Schema ​of the whole [[:​stats:​start]]. Everything //​persistent//​ is represented in the schema. The schema'​s top level element is [[:​stats:​schema:​stats]],​ but it directly splits into the three main groups 
 + 
 +  * [[:​stats:​schema:​account]] 
 +  * [[:​stats:​schema:​exam]] 
 +  * [[:​stats:​schema:​exercise]].
  
 ===== Structure and Integrity Constraints ===== ===== Structure and Integrity Constraints =====
Line 7: Line 11:
 <code xcend> <code xcend>
 element stats { element stats {
 +  attribute revision { integer }
 </​code>​ </​code>​
  
-{{page>:​stats:​schema:​account#​Schema&​noheader&​nofooter}}+{{page>:​stats:​schema:​account#​Schema&​noheader&​nofooter&​noindent}}
  
-{{page>:​stats:​schema:​exercises#​Schema&​noheader&​nofooter}}+{{page>:​stats:​schema:​exercise#​Schema&​noheader&​nofooter&​noindent}}
  
-{{page>:​stats:​schema:​exams#​Schema&​noheader&​nofooter}}+{{page>:​stats:​schema:​exam#​Schema&​noheader&​nofooter&​noindent}}
  
 <code xcend> <code xcend>
Line 20: Line 25:
  
 ===== Atomic Procedures ===== ===== Atomic Procedures =====
 +
 +This section lists all atomic //​manipulations//​ associated with the schema.
 +==== Associated to the Stat System ====
 +
 +These are the associated procedures for [[:​stats:​schema:​stats]],​ i.e. they have no necessary parameters, as the [[:stats:]] is unique and does not need disambiguation. Some of them, however, will have ''​ident''​ parameters, which makes it possible to offer them in these classes, too.
 +
 +{{page>:​stats:​schema:​stats#​Procedures&​doindent&​noheader&​nofooter}}
  
 ==== Associated to Account ==== ==== Associated to Account ====
Line 26: Line 38:
  
 {{page>:​stats:​schema:​account#​Procedures&​doindent&​noheader&​nofooter}} {{page>:​stats:​schema:​account#​Procedures&​doindent&​noheader&​nofooter}}
 +
 +==== Associated to Exam ====
 +
 +These are the associated procedures for [[:​stats:​schema:​exam]],​ i.e. one of their parameters is an ''​id''​ of an exam and they will most likely be offered in a corresponding ''​Exam''​ class in an OO setting. Again, these procedures might be offered in other classes, too.
 +
 +{{page>:​stats:​schema:​exam#​Procedures&​doindent&​noheader&​nofooter}}
 +
 +==== Associated to Exercise ====
 +
 +These are the associated procedures for [[:​stats:​schema:​exercise]],​ i.e. one of their parameters is an ''​id''​ of an exercise and they will most likely be offered in a corresponding ''​Exercise''​ class in an OO setting. Again, these procedures might be offered in other classes, too.
 +
 +{{page>:​stats:​schema:​exercise#​Procedures&​doindent&​noheader&​nofooter}}
 +
 +==== Associated to Group ====
 +
 +These are the associated procedures for [[:​stats:​schema:​group]],​ i.e. they have two parameters for the exercise id and the group id. They will also most likely be offered in a corresponding ''​Group''​ class in an OO setting, which has an associated ''​Exercise''​ object.
 +
 +{{page>:​stats:​schema:​group#​Procedures&​doindent&​noheader&​nofooter}}
 +
 +==== Associated to Student ====
 +
 +These are the associated procedures for [[:​stats:​schema:​student]],​ i.e. they have two parameters for the exercise id and the student id. They will also most likely be offered in a corresponding ''​Student''​ class in an OO setting, which has an associated ''​Exercise''​ object.
 +
 +{{page>:​stats:​schema:​student#​Procedures&​doindent&​noheader&​nofooter}}
stats/schema.1317120652.txt.gz · Last modified: 2011/09/27 12:50 by Patrick Michel