Tutorial - Grasp Controller Patterns v1 PDF

Title Tutorial - Grasp Controller Patterns v1
Course Software Engineering
Institution Coventry University
Pages 4
File Size 555.7 KB
File Type PDF
Total Downloads 4
Total Views 134

Summary

GRASP QUESTIONS...


Description

UML Modelling: Case Study – Priory Dental Surgery Appointment Booking System (PDS) Tutorial: GRASP Controller Patterns 1. Design Stage: to produce Detailed Design Class Diagrams based on the GRASP Controller Patterns  Example 1: Facade Controller  Identify only ONE control class for all the actors to fulfil their responsibilities (functionality in use cases) as shown in the use case diagram.

Solution: the following shows Manager’s responsibility only

© Coventry University

Compiled by Dr. YL Hedley

1

 Example 2: Role Controller  Identify control class(es) for each of the actors. For instance, one control class, ManagerAgent, is required for the actor, Manager, to fulfil the responsibility (functionality in use cases) as shown in the use case diagram.

Solution: the following shows one control class (for the actor, Manager) to coordinate the Manager’s responsibility (a control class for Receptionist is not shown in here)

Exercise 1: Produce a class diagram (which includes the actor, Receptionist) based on the role controller pattern.

© Coventry University

Compiled by Dr. YL Hedley

2

 Example 3: Use Case Controller  Design one control class for each of the use cases (e.g., Register Dentist and Delete a Dentist) that are fulfilled by the Manager

Solution: the following shows one control class for each of the use cases for registering a new dentist and deleting a dentist details only (the responsibility for viewing a dentist’s details and dealing with patients are not shown in here)

Exercise 2: Produce a class diagram to include the use case, ‘view a dentist details’, based on the use case controller pattern.

© Coventry University

Compiled by Dr. YL Hedley

3

2. To produce the Role Controller diagram in StarUML 1) In the Model Explorer window, right click on Design Model and Add Diagram/Class Diagram

2) In the Properties window, change the name to Role Control Class Diagram

3) Go to the Model Explorer window, Design Model, drag the following classes to the main window.

4) Create new classes, ReceptionAgent and ManagerAgent, and link them to their respective boundary/interface classes and data classes. Apply the above for a class diagram based on use case controller pattern.

© Coventry University

Compiled by Dr. YL Hedley

4...


Similar Free PDFs