MarkUs Blog

MarkUs Developers Blog About Their Project

Archive for the ‘simulator’ tag

Data Simulator

without comments

The simulator creates random data to fill in the database.
The simulator creates by default 2 assignments with random due date and total mark. For each assignment, it creates some Tas, students and groupings and then assign the groupings to the Tas. Each grouping may have up to four submissions and it might have been partially or completely marked.

If there is no admin account in the data base, the simulator creates two: “a” and “reid”.
There are four environment variables that can be provided to the simulator:
– NUM_OF_ASSIGNMENTS: it indicates how many assignments the simulator should create. The default value is 2.
– PASSED_DUE_DATE: if it is true, then all the created assignments by the simulator will have their due date passed; if it is false, then the created assignments have due dates two months ahead from the date the assignments were created. If this environment variable was no provided, then the assignments due date randomly can be passed or not.
– NUM_OF_TAS: it is the number of tas each assignment can have. If it was not provided, the number of tas is at least 1 and at most 3.
– NUM_OF_STUDENTS: it is the number of students each ta can have. If it was not provided, the number of students is at least 10 and at most 15.

Written by g9sabied

August 22nd, 2010 at 10:57 am

Posted in Uncategorized