Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Classify each of the following statements as an architectural(A) or detailed(D)

ID: 3854735 • Letter: C

Question

Classify each of the following statements as an architectural(A) or detailed(D) design specification:

For purposes of this exercise, assume that the program in question is large enough that architectural components are much larger than classes.

(a) The find() operation must use a binary search algorithm.

(b) The program must separate the user interface code from the rest of the code.

(c) The client must complete processing in no more than one second and the server must complete

processing in no more than half a second.

(d) The Register class must maintain clients in a hash table.

(e) All utilities in the graphics library must be thread-safe.

(f) All Car objects must register themselves with the Clock object, and the Clock object will notify

the Car objects when a second has passed.

(g) All observers of the Clock class must implement the ClockUser interface.

Explanation / Answer

(a) The find() operation must use a binary search algorithm.

It comes under detail design, as it gives the view of particular element of the system, not the whole system itself

(b) The program must separate the user interface code from the rest of the code.

It will come under architectural specification, as it covers the structure of whole project.

(c) The client must complete processing in no more than one second and the server must complete

processing in no more than half a second.

This is architectural specification, as it covers overall request timing for client and server,not for particular kind of processing.

(d) The Register class must maintain clients in a hash table.

This comes under detailed design, as it deals with specific system component i.e. Register class

(e) All utilities in the graphics library must be thread-safe.

It will come under architectural design as it says about all the utilities of graphical design, not a particular utility.

(f) All Car objects must register themselves with the Clock object, and the Clock object will notify

the Car objects when a second has passed.

It will come under detail design, as the talk is about two particular objects of the system.

(g) All observers of the Clock class must implement the ClockUser interface.

This comes under architectural specification, as it deals with the way whole system interacts with Clock class.