Classify each of the following statements as an architectural (A) or detailed (D
ID: 3741496 • Letter: C
Question
Classify each of the following statements as an architectural (A) or detailed (D) design speci?cation:
(a) The ?nd() 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 Clock User interface.
Explanation / Answer
Please find my answer:
(a) The ?nd() operation must use a binary search algorithm. ---- (DESIGN SPECIFICATION as it depends on implementation and use of algorithm)
(b) The program must separate the user interface code from the rest of the code. ---- (ARCHITECTURAL SPECIFICATION as it indicates the structural abstract of the program)
(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. ---- (ARCHITECTURAL SPECIFICATION as the basic purpose and strategy is to be framed)
(d) The Register class must maintain clients in a hash table. ----(ARCHITECTURAL SPECIFICATION as it is a structural point of development)
(e) All utilities in the graphics library must be thread-safe. -----(ARCHITECTURAL SPECIFICATION as it depicts what must be done but not how it is to be done)
(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. ----(DESIGN SPECIFICATION as it shows the implementation of how it should work)
(g) All observers of the Clock class must implement the ClockUser interface. ----(DESIGN SPECIFICATIONas it shows the implementation and practice)