Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Course Plan
[go: Go Back, main page]

Test and Verification

Lecture 14-15

Subject

        Modelling Exercise

Exercises

Choose one of the three exercises below.  Your solution should contain two part, a main part containing modeling and analyses of the particular system you have chosen using either UPPAAL or visualSTATE (or both).  Also the solution should contain a secondary part providing an evaluation of the tool used.  You may hand in solutions in groups with at most 3 persons.  The solution should be some 5-7 typeset pages.  We will assisting you on April 2 (Wednesday) and April 14 (Monday) in the PC-Lab.  NOTE the change of dates (due to conference participation and Easter coming up).

 

Exercise 1 (Washing Machine)

Model and analyze the control program of a washing machine:

A program selector controls the machine. Functionality is as follows,

The control is as follows

 

Exercise 2 (Gossiping Girls)

Model and analyze the following gossiping girls problem. A number of girls initially know one distinct secret each. Each girl have access to a phone which can be used to call another girl to share their secrets. Each time two girls talk to each other they always exchange all secrets with each other (thus after the phone call they both know all secrets they knew together before the phone call). Only binary commmunication (between two girls in each phone call) is possible.

Task 1: Find the minimal number of phone calls needed for four girls to know all secrets.

Task 2: Try to find an (inductive) argument for how many phone calls are needed to solve the gossiping girls problem for n girls.

Task 3: Refine your model so that each phone call requires some start time units to connect, and in addition some transfer time units to exchange each secret. Find the minimum time needed to solve the gossiping girls problem for four girls if start is 30 and transfer is 60.  Try to vary the number of telephone lines (one, two, arbitrarily many).

 

Exercise 3 (Evaluator system)

Model and analyze a control system of an elevator, with the following functionality:

Possibly also model the elevator itself including assumption of the time to get from one floor to another.  Try to validate various safety and progress properties that you may want the system to satisfy.