nus-cs2113-AY2324S1 / pe-dev-response

0 stars 0 forks source link

Storage Component #1034

Open nus-pe-bot opened 11 months ago

nus-pe-bot commented 11 months ago

Note from the teaching team: This bug was reported during the Part II (Evaluating Documents) stage of the PE. You may reject this bug if it is not related to the quality of documentation.


Does this composition releationship mean, file manager and Ui are whole and part relationship?

image.png


[original: nus-cs2113-AY2324S1/pe-interim#1013] [original labels: severity.Medium type.DocumentationBug]

DextheChik3n commented 11 months ago

Team's Response

Yes, that is correct! When a FileManager object is initialized, it takes a Ui object such that the FileManager is the whole and Ui is the part in the whole-part relationship as shown in the code below.

image.png

Therefore, when the FileManager object is deleted, the Ui object that was a 'part' of the FileManager object will be deleted as well.

However, I am unclear about your issue, are you trying to report that it is wrong or are you just clarifying the composition relationship between FileManager and Ui?

Duplicate status (if any):

--