5.3. Create Test (createtest.rsl)
(****
* The Create Test module provides the basic objects for a test and
* the functions to create the test and add, delete, and edit questions
* in the test.
*)
module CreateTest;
export CreateTest;
object OrginalTest is
components: OriginalTestQuestion* and Class, Title and TotalPoints and Time;
description: (*
Object Proctor is the test that the teacher creates either from a blank
test of from the test generator.
*);
end OriginalTest;
object OrginalTestQuestion inherits from AddQuestion is
components: QuestionPoints;
description: (*
OriginalTestQuestion is the same as AddQuestion except it adds points
for when the test is taken.
*);
end OriginalTest;
object QuestionPoints is integer
description: (*
OriginalTestQuestion is the same as AddQuestion except it adds points
for when the test is taken.
*);
end QuestionPoints;
object TotalPoints is integer
description: (*
Points is the total number of points in a test
*);
end TotalPoints;
object Title is
components: String;
description: (*
Title is the distinguishing name that the teacher chooses to identify
the test as. The title will be what is displayed when the student
tries to view it.
*)
end Title;
object Time is integer
description: (*
Time is the total that comes from adding the Times for all of the
questions in the test.
*)
end Title;
Prev: schedule.rsl
| Next: view.rsl
| Up: spec
| Top: index