Practical assessment
The assessment will involve writing a
formal specification using the
Z notation and then applying
the
ZTC type-checker.
Once type-checked, you should attempt to use the
ZANS animator on your specification.
You should either use the
example in Exercise 4
as a starting point
or
specify any system of your own choice.
In the latter case, it is
recommended that you choose a system that you already know well.
The specification should consist of the following as a minimum:
-
Definition of basic types.
-
Optional:
axiomatic and/or generic definitions for use in the subsequent
specification.
-
An abstract state schema.
-
An initial state.
-
Change of state schema if required.
-
At least three operations where success is assumed.
-
Success and error schemas providing suitable reports.
-
Definitions of total operations.
-
Optional:
One or more validation hypotheses or theorems with proofs.
You are expected to do the following during the course of the term:
-
Produce a Z specification along the lines above, written in
LATEX
source form, and formatted
using the
LATEX
document preparation system.
Your formal specification should be accompanied by an informal
explanation, of approximately the same size as the formal part of the
description.
-
Successfully type-check the entire specification using the
ZTC type-checker.
-
Attempt to animate part (at least one operation)
of the specification using the
ZANS animator.
Note:
make a separate copy of your specification for this since you will
probably need to modify it to make animation possible.
Any problems should be noted in your report.
You may discuss your specification with the demonstrator
during practical sessions, or with the lecturer after the Monday lectures,
as you develop it.
A report on your practical work during the
term should be handed in at the end of the assessment period,
covering the following:
-
Introduction to the problem which you decide to tackle.
-
Presentation of the Z specification, including matching informal English
explanation.
-
Discussion of problems encountered in the development your specification,
particularly with respect to ensuring its type correctness using ZTC.
-
Presentation of animation runs using ZANS for one or more operations
in your specification.
-
Conclusions, including general problems encountered and any changes of
approach you would use if you were to undertake the exercise again.
You may use the above items as the basis for the sections in your
report. Feedback on your assessed work will be provided during the
practical sessions and if required during lectures as well. You are
expected to discuss your assessment as it progresses, as if you are a
member of a design team.
It is highly recommended that you write up your
report in draft form as you proceed, and polish it at the end, rather
than leaving it all till the end.
Extra marks can be gained for the following:
-
Elegance of specification and approach.
-
Clarity and organization of your report.
-
Simplicity (if correct), rather than verbosity.
Guidance on the above can be given at the practicals. In particular, you
should have your Z specification checked by the demonstrator and
successfully type-checked by ZTC before proceeding to attempt to animate it.
Note that information on the course is available on-line on
the
World Wide Web under the following
URL (Uniform Resource Locator):
http://www.cs.reading.ac.uk/cs/people/jpb/teaching/z.html