nus-cs2103-AY2324S2 / forum

16 stars 0 forks source link

Clarification Regarding Labels on Class Diagrams #834

Closed itstrueitstrueitsrealitsreal closed 7 months ago

itstrueitstrueitsrealitsreal commented 7 months ago

Hi, just wanted to clarify if using the <<>> notation to denote the implemented design patterns in our DG is acceptable. As an example,

Screenshot 2024-04-14 at 12 32 11 PM

would indicate that Ui uses the Observer and Facade patterns.

Additionally, would it be acceptable to omit <<interface>> or {abstract} if we were to replace them with the name of a role in a design pattern? Thanks!

damithc commented 7 months ago

Hi, just wanted to clarify if using the <<>> notation to denote the implemented design patterns in our DG is acceptable. As an example,

Screenshot 2024-04-14 at 12 32 11 PM

would indicate that Ui uses the Observer and Facade patterns.

@itstrueitstrueitsrealitsreal Yes, in class diagrams (not in object diagrams as stated in the post subject)

Additionally, would it be acceptable to omit <<interface>> or {abstract} if we were to replace them with the name of a role in a design pattern? Thanks!

No. These two are separate from the additional stereotypes you add to a class.

itstrueitstrueitsrealitsreal commented 7 months ago

Thanks for the clarification! I have updated the post subject accordingly. In that case, I have an additional follow-up question: Would the following be acceptable in a class diagram?

Screenshot 2024-04-14 at 1 18 24 PM
damithc commented 7 months ago

@itstrueitstrueitsrealitsreal It is fine to have multiple stereotypes for a UML entity.

itstrueitstrueitsrealitsreal commented 7 months ago

Thanks for the clarification! Marking this post as closed.