![]() |
![]() |
|
02152 Concurrent Systems Fall 2008 |
Mandatory Assignment 1: Update Page |
Home | Plan | Material |
For those of you that may have started late on the SPIN part, here are some common problems encountered.
Instance numbers may be calculated from the number of
active processes created. Alternatively, processes may be started
explicitly by an init process and their instantiation numbers
recorded in global values:
pid up1, up2, down1, down2;
init() {
atomic {
up1 = run Car(UP);
up2 = run Car(UP);
down1 = run Car(DOWN);
down2 = run Car(DOWN)
}
}
Now you may refer to e.g. Car[up1]@entry in LTL-definitions.
[For a more flexible solution you may, of course, use arrays of pid's]
Errata and clarifications to the assigment.
Your group number should appear on the front page.
See also the slides with advices on the reporting (ps)(pdf) and the general reporting requirments.
Thus, all modified Java classes must be present in the report
as appendices. Also your Promela and LTL-property files must be included.
To create a .jar file for the version being the answer to Step no. n, in the directory where both the source files and the corresponding class files are present, issue the command:
[Note that n is a syntactic variable that must be substituted by
the step number, e.g. step_3.jar]
You may consult the manual pages for the jar command in order to understand the precise effects of the command line.
Alternatively, you may prepare the jar-file as an executable application using a Manifest file (eg. generated by a development environment like Eclipse).
If properly done, it should be possible to run the program out-of-the-jar by issuing the command:
Or, alternatively as an application using
You must check that the .jar-files can run this way
before submitting them. The programs will be tested in the JDK 1.6 environment.
You are requested to deliver electronically the versions corresponding to Step 3 (including Step 1), and Step 5 (including Step 4), i.e. step_3.jar, and step_5.jar. You might also deliver separate versions for steps 1 and 4.
If you have have done any EXTRAs, they should be identified in the version number, eg. step_4C.jar for a solution to Step 4 with fair alley synchronization.
Otherwise, alternative version may be identified like step_3_alt.jar etc.
The same applies if you have done EXTRA (A), ie. the file should
be packed eg. as step_3A.zip.
The subject line of the mail must be
"Man1-NN"
where NN is your two-digit
group number, e.g. Man1-47
The format of the body of the mail is free, but must comprise your student numbers and names for identification purposes as well as an indication of the versions provided and the EXTRAs you may have done.
The mail must be sent before the deadline.
Hans Henrik Løvengreen, Oct 10, 2008 |