Software Engineering, Autumn 2002, Practice Session 7

1 We will continue the development of the controll software for a bottle recycling machine. The solution for last weeks exercises will be published on the Exercises page of the course both as a JPEG image and as Plastic Lite PLA-diagram. You may build your solution on these diagrams. Develop a user interface for activation the machine. Consider the bottle reception activity. Complete the class diagram with methods, attributes and classes needed for this activity. Describe each method briefly and determine its parameters.

2 Outline a sequence diagram for bottle reception.

3 Find out and prepare to explain the other students the purpose and the idea of MVC-architecture (MVC= Model-View-Controller).

4 SQL-Trainer software is used for practicing SQL in database courses. The software presents students task they have to solve as SQL commands. Trainer provides a user interface for entering the queries. The solution is then analysed to provide feedback for the student.

Trainer class model contains the class Task with attributes task_text_finnish and task_text_english. The method that carries out the analysis is analyse(task, answer,language,out). Parameter answer is the sql command. Class task has a collection of attributes (for example the number of rows in the result of the command) to specify parameters for the analysis. Analysis feedback is written in the spaecified language on the stream out and also in the database.

There is a plan to extend Trainer not to cover SQL tasks only but also other types of tasks (for example multiple choice with single or multi selection) the answers of which require analysis different from SQL-analysis. How to lay out the task may also differ from laying out the SQL tasks. Adding new task types and their analysers should require minimum effort. What design pattern would you use and how?

5 Cand composite, strategy, obrerver or command design patterns be used in bottle recycling machine. In which situations?


Harri Laine, 23.10.2002